<!doctype html>
<html>
<head>
<meta charset='UTF-8'><meta name='viewport' content='width=device-width initial-scale=1'>

<style type='text/css'>html {overflow-x: initial !important;}:root { --bg-color: #ffffff; --text-color: #333333; --select-text-bg-color: #B5D6FC; --select-text-font-color: auto; --monospace: "Lucida Console",Consolas,"Courier",monospace; --title-bar-height: 20px; }
.mac-os-11 { --title-bar-height: 28px; }
html { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { white-space: pre-wrap; }
body { margin: 0px; padding: 0px; height: auto; inset: 0px; font-size: 1rem; line-height: 1.42857143; overflow-x: hidden; background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; background-position: inherit; background-repeat: inherit; }
iframe { margin: auto; }
a.url { word-break: break-all; }
a:active, a:hover { outline: 0px; }
.in-text-selection, ::selection { text-shadow: none; background: var(--select-text-bg-color); color: var(--select-text-font-color); }
#write { margin: 0px auto; height: auto; width: inherit; word-break: normal; word-wrap: break-word; position: relative; white-space: normal; overflow-x: visible; padding-top: 36px; }
#write.first-line-indent p { text-indent: 2em; }
#write.first-line-indent li p, #write.first-line-indent p * { text-indent: 0px; }
#write.first-line-indent li { margin-left: 2em; }
.for-image #write { padding-left: 8px; padding-right: 8px; }
body.typora-export { padding-left: 30px; padding-right: 30px; }
.typora-export .footnote-line, .typora-export li, .typora-export p { white-space: pre-wrap; }
.typora-export .task-list-item input { pointer-events: none; }
@media screen and (max-width: 500px) {
  body.typora-export { padding-left: 0px; padding-right: 0px; }
  #write { padding-left: 20px; padding-right: 20px; }
}
#write li > figure:last-child { margin-bottom: 0.5rem; }
#write ol, #write ul { position: relative; }
img { max-width: 100%; vertical-align: middle; image-orientation: from-image; }
button, input, select, textarea { color: inherit; font-family: inherit; font-size: inherit; font-style: inherit; font-variant-caps: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; }
input[type="checkbox"], input[type="radio"] { line-height: normal; padding: 0px; }
*, ::after, ::before { box-sizing: border-box; }
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p, #write pre { width: inherit; }
#write h1, #write h2, #write h3, #write h4, #write h5, #write h6, #write p { position: relative; }
p { line-height: inherit; }
h1, h2, h3, h4, h5, h6 { break-after: avoid-page; break-inside: avoid; orphans: 4; }
p { orphans: 4; }
h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }
.md-math-block, .md-rawblock, h1, h2, h3, h4, h5, h6, p { margin-top: 1rem; margin-bottom: 1rem; }
.hidden { display: none; }
.md-blockmeta { color: rgb(204, 204, 204); font-weight: 700; font-style: italic; }
a { cursor: pointer; }
sup.md-footnote { padding: 2px 4px; background-color: rgba(238, 238, 238, 0.7); color: rgb(85, 85, 85); border-radius: 4px; cursor: pointer; }
sup.md-footnote a, sup.md-footnote a:hover { color: inherit; text-transform: inherit; text-decoration: inherit; }
#write input[type="checkbox"] { cursor: pointer; width: inherit; height: inherit; }
figure { overflow-x: auto; margin: 1.2em 0px; max-width: calc(100% + 16px); padding: 0px; }
figure > table { margin: 0px; }
thead, tr { break-inside: avoid; break-after: auto; }
thead { display: table-header-group; }
table { border-collapse: collapse; border-spacing: 0px; width: 100%; overflow: auto; break-inside: auto; text-align: left; }
table.md-table td { min-width: 32px; }
.CodeMirror-gutters { border-right-width: 0px; background-color: inherit; }
.CodeMirror-linenumber { -webkit-user-select: none; }
.CodeMirror { text-align: left; }
.CodeMirror-placeholder { opacity: 0.3; }
.CodeMirror pre { padding: 0px 4px; }
.CodeMirror-lines { padding: 0px; }
div.hr:focus { cursor: none; }
#write pre { white-space: pre-wrap; }
#write.fences-no-line-wrapping pre { white-space: pre; }
#write pre.ty-contain-cm { white-space: normal; }
.CodeMirror-gutters { margin-right: 4px; }
.md-fences { font-size: 0.9rem; display: block; break-inside: avoid; text-align: left; overflow: visible; white-space: pre; background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; position: relative !important; background-position: inherit; background-repeat: inherit; }
.md-fences-adv-panel { width: 100%; margin-top: 10px; text-align: center; padding-top: 0px; padding-bottom: 8px; overflow-x: auto; }
#write .md-fences.mock-cm { white-space: pre-wrap; }
.md-fences.md-fences-with-lineno { padding-left: 0px; }
#write.fences-no-line-wrapping .md-fences.mock-cm { white-space: pre; overflow-x: auto; }
.md-fences.mock-cm.md-fences-with-lineno { padding-left: 8px; }
.CodeMirror-line, twitterwidget { break-inside: avoid; }
svg { break-inside: avoid; }
.footnotes { opacity: 0.8; font-size: 0.9rem; margin-top: 1em; margin-bottom: 1em; }
.footnotes + .footnotes { margin-top: 0px; }
.md-reset { margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: top; text-decoration: none; text-shadow: none; float: none; position: static; width: auto; height: auto; white-space: nowrap; cursor: inherit; line-height: normal; font-weight: 400; text-align: left; box-sizing: content-box; direction: ltr; background-position: 0px 0px; }
li div { padding-top: 0px; }
blockquote { margin: 1rem 0px; }
li .mathjax-block, li p { margin: 0.5rem 0px; }
li blockquote { margin: 1rem 0px; }
li { margin: 0px; position: relative; }
blockquote > :last-child { margin-bottom: 0px; }
blockquote > :first-child, li > :first-child { margin-top: 0px; }
.footnotes-area { color: rgb(136, 136, 136); margin-top: 0.714rem; padding-bottom: 0.143rem; white-space: normal; }
#write .footnote-line { white-space: pre-wrap; }
@media print {
  body, html { border: 1px solid transparent; height: 99%; break-after: avoid; break-before: avoid; font-variant-ligatures: no-common-ligatures; }
  #write { margin-top: 0px; border-color: transparent !important; padding-top: 0px !important; padding-bottom: 0px !important; }
  .typora-export * { print-color-adjust: exact; }
  .typora-export #write { break-after: avoid; }
  .typora-export #write::after { height: 0px; }
  .is-mac table { break-inside: avoid; }
  #write > p:nth-child(1) { margin-top: 0px; }
  .typora-export-show-outline .typora-export-sidebar { display: none; }
  figure { overflow-x: visible; }
}
.footnote-line { margin-top: 0.714em; font-size: 0.7em; }
a img, img a { cursor: pointer; }
pre.md-meta-block { font-size: 0.8rem; min-height: 0.8rem; white-space: pre-wrap; background-color: rgb(204, 204, 204); display: block; overflow-x: hidden; }
p > .md-image:only-child:not(.md-img-error) img, p > img:only-child { display: block; margin: auto; }
#write.first-line-indent p > .md-image:only-child:not(.md-img-error) img { left: -2em; position: relative; }
p > .md-image:only-child { display: inline-block; width: 100%; }
#write .MathJax_Display { margin: 0.8em 0px 0px; }
.md-math-block { width: 100%; }
.md-math-block:not(:empty)::after { display: none; }
.MathJax_ref { fill: currentcolor; }
[contenteditable="true"]:active, [contenteditable="true"]:focus, [contenteditable="false"]:active, [contenteditable="false"]:focus { outline: 0px; box-shadow: none; }
.md-task-list-item { position: relative; list-style-type: none; }
.task-list-item.md-task-list-item { padding-left: 0px; }
.md-task-list-item > input { position: absolute; top: 0px; left: 0px; margin-left: -1.2em; margin-top: calc(1em - 10px); border: none; }
.math { font-size: 1rem; }
.md-toc { min-height: 3.58rem; position: relative; font-size: 0.9rem; border-radius: 10px; }
.md-toc-content { position: relative; margin-left: 0px; }
.md-toc-content::after, .md-toc::after { display: none; }
.md-toc-item { display: block; color: rgb(65, 131, 196); }
.md-toc-item a { text-decoration: none; }
.md-toc-inner:hover { text-decoration: underline; }
.md-toc-inner { display: inline-block; cursor: pointer; }
.md-toc-h1 .md-toc-inner { margin-left: 0px; font-weight: 700; }
.md-toc-h2 .md-toc-inner { margin-left: 2em; }
.md-toc-h3 .md-toc-inner { margin-left: 4em; }
.md-toc-h4 .md-toc-inner { margin-left: 6em; }
.md-toc-h5 .md-toc-inner { margin-left: 8em; }
.md-toc-h6 .md-toc-inner { margin-left: 10em; }
@media screen and (max-width: 48em) {
  .md-toc-h3 .md-toc-inner { margin-left: 3.5em; }
  .md-toc-h4 .md-toc-inner { margin-left: 5em; }
  .md-toc-h5 .md-toc-inner { margin-left: 6.5em; }
  .md-toc-h6 .md-toc-inner { margin-left: 8em; }
}
a.md-toc-inner { font-size: inherit; font-style: inherit; font-weight: inherit; line-height: inherit; }
.footnote-line a:not(.reversefootnote) { color: inherit; }
.reversefootnote { font-family: ui-monospace, sans-serif; }
.md-attr { display: none; }
.md-fn-count::after { content: "."; }
code, pre, samp, tt { font-family: var(--monospace); }
kbd { margin: 0px 0.1em; padding: 0.1em 0.6em; font-size: 0.8em; color: rgb(36, 39, 41); background-color: rgb(255, 255, 255); border: 1px solid rgb(173, 179, 185); border-radius: 3px; box-shadow: rgba(12, 13, 14, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset; white-space: nowrap; vertical-align: middle; }
.md-comment { color: rgb(162, 127, 3); opacity: 0.6; font-family: var(--monospace); }
code { text-align: left; }
a.md-print-anchor { white-space: pre !important; border: none !important; display: inline-block !important; position: absolute !important; width: 1px !important; right: 0px !important; outline: 0px !important; text-shadow: initial !important; background-position: 0px 0px !important; }
.os-windows.monocolor-emoji .md-emoji { font-family: "Segoe UI Symbol", sans-serif; }
.md-diagram-panel > svg { max-width: 100%; }
[lang="flow"] svg, [lang="mermaid"] svg { max-width: 100%; height: auto; }
[lang="mermaid"] .node text { font-size: 1rem; }
table tr th { border-bottom-width: 0px; }
video { max-width: 100%; display: block; margin: 0px auto; }
iframe { max-width: 100%; width: 100%; border: none; }
.highlight td, .highlight tr { border: 0px; }
mark { background-color: rgb(255, 255, 0); color: rgb(0, 0, 0); }
.md-html-inline .md-plain, .md-html-inline strong, mark .md-inline-math, mark strong { color: inherit; }
.md-expand mark .md-meta { opacity: 0.3 !important; }
mark .md-meta { color: rgb(0, 0, 0); }
@media print {
  .typora-export h1, .typora-export h2, .typora-export h3, .typora-export h4, .typora-export h5, .typora-export h6 { break-inside: avoid; }
}
.md-diagram-panel .messageText { stroke: none !important; }
.md-diagram-panel .start-state { fill: var(--node-fill); }
.md-diagram-panel .edgeLabel rect { opacity: 1 !important; }
.md-fences.md-fences-math { font-size: 1em; }
.md-fences-advanced:not(.md-focus) { padding: 0px; white-space: nowrap; border: 0px; }
.md-fences-advanced:not(.md-focus) { background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; background-position: inherit; background-repeat: inherit; }
.typora-export-show-outline .typora-export-content { max-width: 1440px; margin: auto; display: flex; flex-direction: row; }
.typora-export-sidebar { width: 300px; font-size: 0.8rem; margin-top: 80px; margin-right: 18px; }
.typora-export-show-outline #write { --webkit-flex: 2; flex: 2 1 0%; }
.typora-export-sidebar .outline-content { position: fixed; top: 0px; max-height: 100%; overflow: hidden auto; padding-bottom: 30px; padding-top: 60px; width: 300px; }
@media screen and (max-width: 1024px) {
  .typora-export-sidebar, .typora-export-sidebar .outline-content { width: 240px; }
}
@media screen and (max-width: 800px) {
  .typora-export-sidebar { display: none; }
}
.outline-content li, .outline-content ul { margin-left: 0px; margin-right: 0px; padding-left: 0px; padding-right: 0px; list-style: none; overflow-wrap: anywhere; }
.outline-content ul { margin-top: 0px; margin-bottom: 0px; }
.outline-content strong { font-weight: 400; }
.outline-expander { width: 1rem; height: 1.428571429rem; position: relative; display: table-cell; vertical-align: middle; cursor: pointer; padding-left: 4px; }
.outline-expander::before { content: ""; position: relative; font-family: Ionicons; display: inline-block; font-size: 8px; vertical-align: middle; }
.outline-item { padding-top: 3px; padding-bottom: 3px; cursor: pointer; }
.outline-expander:hover::before { content: ""; }
.outline-h1 > .outline-item { padding-left: 0px; }
.outline-h2 > .outline-item { padding-left: 1em; }
.outline-h3 > .outline-item { padding-left: 2em; }
.outline-h4 > .outline-item { padding-left: 3em; }
.outline-h5 > .outline-item { padding-left: 4em; }
.outline-h6 > .outline-item { padding-left: 5em; }
.outline-label { cursor: pointer; display: table-cell; vertical-align: middle; text-decoration: none; color: inherit; }
.outline-label:hover { text-decoration: underline; }
.outline-item:hover { border-color: rgb(245, 245, 245); background-color: var(--item-hover-bg-color); }
.outline-item:hover { margin-left: -28px; margin-right: -28px; border-left-width: 28px; border-left-style: solid; border-left-color: transparent; border-right-width: 28px; border-right-style: solid; border-right-color: transparent; }
.outline-item-single .outline-expander::before, .outline-item-single .outline-expander:hover::before { display: none; }
.outline-item-open > .outline-item > .outline-expander::before { content: ""; }
.outline-children { display: none; }
.info-panel-tab-wrapper { display: none; }
.outline-item-open > .outline-children { display: block; }
.typora-export .outline-item { padding-top: 1px; padding-bottom: 1px; }
.typora-export .outline-item:hover { margin-right: -8px; border-right-width: 8px; border-right-style: solid; border-right-color: transparent; }
.typora-export .outline-expander::before { content: "+"; font-family: inherit; top: -1px; }
.typora-export .outline-expander:hover::before, .typora-export .outline-item-open > .outline-item > .outline-expander::before { content: "−"; }
.typora-export-collapse-outline .outline-children { display: none; }
.typora-export-collapse-outline .outline-item-open > .outline-children, .typora-export-no-collapse-outline .outline-children { display: block; }
.typora-export-no-collapse-outline .outline-expander::before { content: "" !important; }
.typora-export-show-outline .outline-item-active > .outline-item .outline-label { font-weight: 700; }
.md-inline-math-container mjx-container { zoom: 0.95; }
mjx-container { break-inside: avoid; }
.md-alert.md-alert-note { border-left-color: rgb(9, 105, 218); }
.md-alert.md-alert-important { border-left-color: rgb(130, 80, 223); }
.md-alert.md-alert-warning { border-left-color: rgb(154, 103, 0); }
.md-alert.md-alert-tip { border-left-color: rgb(31, 136, 61); }
.md-alert.md-alert-caution { border-left-color: rgb(207, 34, 46); }
.md-alert { padding: 0px 1em; margin-bottom: 16px; color: inherit; border-left-width: 0.25em; border-left-style: solid; border-left-color: rgb(0, 0, 0); }
.md-alert-text-note { color: rgb(9, 105, 218); }
.md-alert-text-important { color: rgb(130, 80, 223); }
.md-alert-text-warning { color: rgb(154, 103, 0); }
.md-alert-text-tip { color: rgb(31, 136, 61); }
.md-alert-text-caution { color: rgb(207, 34, 46); }
.md-alert-text { font-size: 0.9rem; font-weight: 700; }
.md-alert-text svg { fill: currentcolor; position: relative; top: 0.125em; margin-right: 1ch; overflow: visible; }
.md-alert-text-container::after { content: attr(data-text); text-transform: capitalize; pointer-events: none; margin-right: 1ch; }


.CodeMirror { height: auto; }
.CodeMirror.cm-s-inner { background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; background-position: inherit; background-repeat: inherit; }
.CodeMirror-scroll { overflow: auto hidden; z-index: 3; }
.CodeMirror-gutter-filler, .CodeMirror-scrollbar-filler { background-color: rgb(255, 255, 255); }
.CodeMirror-gutters { border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221, 221, 221); background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; white-space: nowrap; background-position: inherit; background-repeat: inherit; }
.CodeMirror-linenumber { padding: 0px 3px 0px 5px; text-align: right; color: rgb(153, 153, 153); }
.cm-s-inner .cm-keyword { color: rgb(119, 0, 136); }
.cm-s-inner .cm-atom, .cm-s-inner.cm-atom { color: rgb(34, 17, 153); }
.cm-s-inner .cm-number { color: rgb(17, 102, 68); }
.cm-s-inner .cm-def { color: rgb(0, 0, 255); }
.cm-s-inner .cm-variable { color: rgb(0, 0, 0); }
.cm-s-inner .cm-variable-2 { color: rgb(0, 85, 170); }
.cm-s-inner .cm-variable-3 { color: rgb(0, 136, 85); }
.cm-s-inner .cm-string { color: rgb(170, 17, 17); }
.cm-s-inner .cm-property { color: rgb(0, 0, 0); }
.cm-s-inner .cm-operator { color: rgb(152, 26, 26); }
.cm-s-inner .cm-comment, .cm-s-inner.cm-comment { color: rgb(170, 85, 0); }
.cm-s-inner .cm-string-2 { color: rgb(255, 85, 0); }
.cm-s-inner .cm-meta { color: rgb(85, 85, 85); }
.cm-s-inner .cm-qualifier { color: rgb(85, 85, 85); }
.cm-s-inner .cm-builtin { color: rgb(51, 0, 170); }
.cm-s-inner .cm-bracket { color: rgb(153, 153, 119); }
.cm-s-inner .cm-tag { color: rgb(17, 119, 0); }
.cm-s-inner .cm-attribute { color: rgb(0, 0, 204); }
.cm-s-inner .cm-header, .cm-s-inner.cm-header { color: rgb(0, 0, 255); }
.cm-s-inner .cm-quote, .cm-s-inner.cm-quote { color: rgb(0, 153, 0); }
.cm-s-inner .cm-hr, .cm-s-inner.cm-hr { color: rgb(153, 153, 153); }
.cm-s-inner .cm-link, .cm-s-inner.cm-link { color: rgb(0, 0, 204); }
.cm-negative { color: rgb(221, 68, 68); }
.cm-positive { color: rgb(34, 153, 34); }
.cm-header, .cm-strong { font-weight: 700; }
.cm-del { text-decoration: line-through; }
.cm-em { font-style: italic; }
.cm-link { text-decoration: underline; }
.cm-error { color: red; }
.cm-invalidchar { color: red; }
.cm-constant { color: rgb(38, 139, 210); }
.cm-defined { color: rgb(181, 137, 0); }
div.CodeMirror span.CodeMirror-matchingbracket { color: rgb(0, 255, 0); }
div.CodeMirror span.CodeMirror-nonmatchingbracket { color: rgb(255, 34, 34); }
.cm-s-inner .CodeMirror-activeline-background { background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; background-position: inherit; background-repeat: inherit; }
.CodeMirror { position: relative; overflow: hidden; }
.CodeMirror-scroll { height: 100%; outline: 0px; position: relative; box-sizing: content-box; background-image: inherit; background-size: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: inherit; background-position: inherit; background-repeat: inherit; }
.CodeMirror-sizer { position: relative; }
.CodeMirror-gutter-filler, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-vscrollbar { position: absolute; z-index: 6; display: none; outline: 0px; }
.CodeMirror-vscrollbar { right: 0px; top: 0px; overflow: hidden; }
.CodeMirror-hscrollbar { bottom: 0px; left: 0px; overflow: auto hidden; }
.CodeMirror-scrollbar-filler { right: 0px; bottom: 0px; }
.CodeMirror-gutter-filler { left: 0px; bottom: 0px; }
.CodeMirror-gutters { position: absolute; left: 0px; top: 0px; padding-bottom: 10px; z-index: 3; overflow-y: hidden; }
.CodeMirror-gutter { white-space: normal; height: 100%; box-sizing: content-box; padding-bottom: 30px; margin-bottom: -32px; display: inline-block; }
.CodeMirror-gutter-wrapper { position: absolute; z-index: 4; border: none !important; background-position: 0px 0px !important; }
.CodeMirror-gutter-background { position: absolute; top: 0px; bottom: 0px; z-index: 4; }
.CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; }
.CodeMirror-lines { cursor: text; }
.CodeMirror pre { border-radius: 0px; border-width: 0px; font-family: inherit; font-size: inherit; margin: 0px; white-space: pre; word-wrap: normal; color: inherit; z-index: 2; position: relative; overflow: visible; background-position: 0px 0px; }
.CodeMirror-wrap pre { word-wrap: break-word; white-space: pre-wrap; word-break: normal; }
.CodeMirror-code pre { border-right-width: 30px; border-right-style: solid; border-right-color: transparent; width: fit-content; }
.CodeMirror-wrap .CodeMirror-code pre { border-right-style: none; width: auto; }
.CodeMirror-linebackground { position: absolute; inset: 0px; z-index: 0; }
.CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; }
.CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; }
.CodeMirror-measure { position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden; }
.CodeMirror-measure pre { position: static; }
.CodeMirror div.CodeMirror-cursor { position: absolute; visibility: hidden; border-right-style: none; width: 0px; }
.CodeMirror div.CodeMirror-cursor { visibility: hidden; }
.CodeMirror-focused div.CodeMirror-cursor { visibility: inherit; }
.cm-searching { background-color: rgba(255, 255, 0, 0.4); }
span.cm-underlined { text-decoration: underline; }
span.cm-strikethrough { text-decoration: line-through; }
.cm-tw-syntaxerror { color: rgb(255, 255, 255); background-color: rgb(153, 0, 0); }
.cm-tw-deleted { text-decoration: line-through; }
.cm-tw-header5 { font-weight: 700; }
.cm-tw-listitem:first-child { padding-left: 10px; }
.cm-tw-box { border-style: solid; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-color: inherit; border-top-width: 0px !important; }
.cm-tw-underline { text-decoration: underline; }
@media print {
  .CodeMirror div.CodeMirror-cursor { visibility: hidden; }
}


:root {
  --mermaid-theme: night;
}

[lang='mermaid'] .label {
  color: #333;
}

/* CSS Document */

/** code highlight */

.cm-s-inner .cm-variable,
.cm-s-inner .cm-operator,
.cm-s-inner .cm-property {
    color: #b8bfc6;
}

.cm-s-inner .cm-keyword {
    color: #C88FD0;
}

.cm-s-inner .cm-tag {
    color: #7DF46A;
}

.cm-s-inner .cm-attribute {
    color: #7575E4;
}

.CodeMirror div.CodeMirror-cursor {
    border-left: 1px solid #b8bfc6;
    z-index: 3;
}

.cm-s-inner .cm-string {
    color: #D26B6B;
}

.cm-s-inner .cm-comment,
.cm-s-inner.cm-comment {
    color: #DA924A;
}

.cm-s-inner .cm-header,
.cm-s-inner .cm-def,
.cm-s-inner.cm-header,
.cm-s-inner.cm-def {
    color: #8d8df0;
}

.cm-s-inner .cm-quote,
.cm-s-inner.cm-quote {
    color: #57ac57;
}

.cm-s-inner .cm-hr {
    color: #d8d5d5;
}

.cm-s-inner .cm-link {
    color: #d3d3ef;
}

.cm-s-inner .cm-negative {
    color: #d95050;
}

.cm-s-inner .cm-positive {
    color: #50e650;
}

.cm-s-inner .cm-string-2 {
    color: #f50;
}

.cm-s-inner .cm-meta,
.cm-s-inner .cm-qualifier {
    color: #b7b3b3;
}

.cm-s-inner .cm-builtin {
    color: #f3b3f8;
}

.cm-s-inner .cm-bracket {
    color: #997;
}

.cm-s-inner .cm-atom,
.cm-s-inner.cm-atom {
    color: #84B6CB;
}

.cm-s-inner .cm-number {
    color: #64AB8F;
}

.cm-s-inner .cm-variable {
    color: #b8bfc6;
}

.cm-s-inner .cm-variable-2 {
    color: #9FBAD5;
}

.cm-s-inner .cm-variable-3 {
    color: #1cc685;
}

.CodeMirror-selectedtext,
.CodeMirror-selected {
    background: #4a89dc;
    color: #fff !important;
    text-shadow: none;
}

.CodeMirror-gutters {
    border-right: none;
}

/* CSS Document */

/** markdown source **/
.cm-s-typora-default .cm-header, 
.cm-s-typora-default .cm-property
{
    color: #cebcca;
}

.CodeMirror.cm-s-typora-default div.CodeMirror-cursor{
    border-left: 3px solid #b8bfc6;
}

.cm-s-typora-default .cm-comment {
    color: #9FB1FF;
}

.cm-s-typora-default .cm-string {
    color: #A7A7D9
}

.cm-s-typora-default .cm-atom, .cm-s-typora-default .cm-number {
    color: #848695;
    font-style: italic;
}

.cm-s-typora-default .cm-link {
    color: #95B94B;
}

.cm-s-typora-default .CodeMirror-activeline-background {
    background: rgba(51, 51, 51, 0.72);
}

.cm-s-typora-default .cm-comment, .cm-s-typora-default .cm-code {
	color: #8aa1e1;
}@import "";
@import "";
@import "";

:root {
    --bg-color:  #363B40;
    --side-bar-bg-color: #2E3033;
    --text-color: #b8bfc6;

    --select-text-bg-color:#4a89dc;

    --item-hover-bg-color: #0a0d16;
    --control-text-color: #b7b7b7;
    --control-text-hover-color: #eee;
    --window-border: 1px solid #555;

    --active-file-bg-color: rgb(34, 34, 34);
    --active-file-border-color: #8d8df0;

    --primary-color: #a3d5fe;

    --active-file-text-color: white;
    --item-hover-bg-color: #70717d;
    --item-hover-text-color: white;
    --primary-color: #6dc1e7;

    --rawblock-edit-panel-bd: #333;

    --search-select-bg-color: #428bca;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    background: #363B40;
    background: var(--bg-color);
    fill: currentColor;
    line-height: 1.625rem;
}

#write {
    max-width: 914px;
}


@media only screen and (min-width: 1400px) {
	#write {
		max-width: 1024px;
	}
}

@media only screen and (min-width: 1800px) {
	#write {
		max-width: 1200px;
	}
}

html,
body,
button,
input,
select,
textarea,
div.code-tooltip-content {
    color: #b8bfc6;
    border-color: transparent;
}

div.code-tooltip,
.md-hover-tip .md-arrow:after {
    background: #333;
}

.native-window #md-notification {
    border: 1px solid #70717d;
}

.popover.bottom > .arrow:after {
    border-bottom-color: #333;
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif;
}

hr {
    height: 2px;
    border: 0;
    margin: 24px 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lucida Grande", "Corbel", sans-serif;
    font-weight: normal;
    clear: both;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    color: #DEDEDE
}

h1 {
    font-size: 2.5rem;
    /* 36px */
    line-height: 2.75rem;
    /* 40px */
    margin-bottom: 1.5rem;
    /* 24px */
    letter-spacing: -1.5px;
}

h2 {
    font-size: 1.63rem;
    /* 24px */
    line-height: 1.875rem;
    /* 30px */
    margin-bottom: 1.5rem;
    /* 24px */
    letter-spacing: -1px;
    font-weight: bold;
}

h3 {
    font-size: 1.17rem;
    /* 18px */
    line-height: 1.5rem;
    /* 24px */
    margin-bottom: 1.5rem;
    /* 24px */
    letter-spacing: -1px;
    font-weight: bold;
}

h4 {
    font-size: 1.12rem;
    /* 16px */
    line-height: 1.375rem;
    /* 22px */
    margin-bottom: 1.5rem;
    /* 24px */
    color: white;
}

h5 {
    font-size: 0.97rem;
    /* 16px */
    line-height: 1.25rem;
    /* 22px */
    margin-bottom: 1.5rem;
    /* 24px */
    font-weight: bold;
}

h6 {
    font-size: 0.93rem;
    /* 16px */
    line-height: 1rem;
    /* 16px */
    margin-bottom: 0.75rem;
    color: white;
}

@media (min-width: 980px) {
    h3.md-focus:before,
    h4.md-focus:before,
    h5.md-focus:before,
    h6.md-focus:before {
        color: #ddd;
        border: 1px solid #ddd;
        border-radius: 3px;
        position: absolute;
        left: -1.642857143rem;
        top: .357142857rem;
        float: left;
        font-size: 9px;
        padding-left: 2px;
        padding-right: 2px;
        vertical-align: bottom;
        font-weight: normal;
        line-height: normal;
    }

    h3.md-focus:before {
        content: 'h3';
    }

    h4.md-focus:before {
        content: 'h4';
    }

    h5.md-focus:before {
        content: 'h5';
        top: 0px;
    }

    h6.md-focus:before {
        content: 'h6';
        top: 0px;
    }
}

a {
    text-decoration: none;
    outline: 0;
}

a:hover {
    outline: 0;
}

a:focus {
    outline: thin dotted;
}

sup.md-footnote {
    background-color: #555;
    color: #ddd;
}

p {
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

p,
ul,
dd,
ol,
hr,
address,
pre,
table,
iframe,
.wp-caption,
.wp-audio-shortcode,
.wp-video-shortcode {
    margin-top: 0;
    margin-bottom: 1.5rem;
    /* 24px */
}

audio:not([controls]) {
    display: none;
}

[hidden] {
    display: none;
}

::-moz-selection {
    background: #4a89dc;
    color: #fff;
    text-shadow: none;
}

*.in-text-selection,
::selection {
    background: #4a89dc;
    color: #fff;
    text-shadow: none;
}

ul,
ol {
    padding: 0 0 0 1.875rem;
    /* 30px */
}

ul {
    list-style: square;
}

ol {
    list-style: decimal;
}

ul ul,
ol ol,
ul ol,
ol ul {
    margin: 0;
}

b,
th,
dt,
strong {
    font-weight: bold;
}

i,
em,
dfn,
cite {
    font-style: italic;
}

blockquote {
    padding-left: 1.875rem;
    margin: 0 0 1.875rem 1.875rem;
    border-left: solid 2px #474d54;
    padding-left: 30px;
    margin-top: 35px;
}

pre,
code,
kbd,
tt,
var {
    font-size: 0.875em;
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

code,
tt,
var {
    background: rgba(0, 0, 0, 0.05);
}

kbd {
    padding: 2px 4px;
    font-size: 90%;
    color: #fff;
    background-color: #333;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
}

pre.md-fences {
    padding: 10px 10px 10px 30px;
    margin-bottom: 20px;
    background: #333;
}

.CodeMirror-gutters {
    background: #333;
    border-right: 1px solid transparent;
}

.enable-diagrams pre.md-fences[lang="sequence"] .code-tooltip,
.enable-diagrams pre.md-fences[lang="flow"] .code-tooltip,
.enable-diagrams pre.md-fences[lang="mermaid"] .code-tooltip {
    bottom: -2.2em;
    right: 4px;
}

code,
kbd,
tt,
var {
    padding: 2px 5px;
}

table {
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th,
td {
    padding: 5px 10px;
    vertical-align: top;
}

a {
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

hr {
    background: #474d54;
    /* variable */
}

h1 {
    margin-top: 2em;
}

a {
    color: #e0e0e0;
    text-decoration: underline;
}

a:hover {
    color: #fff;
}

.md-inline-math script {
    color: #81b1db;
}

b,
th,
dt,
strong {
    color: #DEDEDE;
    /* variable */
}

mark {
    background: #D3D40E;
}

blockquote {
    color: #9DA2A6;
}

table a {
    color: #DEDEDE;
    /* variable */
}

th,
td {
    border: solid 1px #474d54;
    /* variable */
}

.task-list {
    padding-left: 0;
}

.md-task-list-item {
    padding-left: 1.25rem;
}

.md-task-list-item > input {
    top: auto;
}

.md-task-list-item > input:before {
    content: "";
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #b8bfc6;
    background-color: #363B40;
    margin-top: -0.4rem;
}

.md-task-list-item > input:checked:before,
.md-task-list-item > input[checked]:before {
    content: '\221A';
    /*◘*/
    font-size: 0.625rem;
    line-height: 0.625rem;
    color: #DEDEDE;
}

/** quick open **/
.auto-suggest-container {
    border: 0px;
    background-color: #525C65;
}

#typora-quick-open {
    background-color: #525C65;
}

#typora-quick-open input{
    background-color: #525C65;
    border: 0;
    border-bottom: 1px solid grey;
}

.typora-quick-open-item {
    background-color: inherit;
    color: inherit;
}

.typora-quick-open-item.active,
.typora-quick-open-item:hover {
    background-color: #4D8BDB;
    color: white;
}

.typora-quick-open-item:hover {
    background-color: rgba(77, 139, 219, 0.8);
}

.typora-search-spinner > div {
  background-color: #fff;
}

#write pre.md-meta-block {
    border-bottom: 1px dashed #ccc;
    background: transparent;
    padding-bottom: 0.6em;
    line-height: 1.6em;
}

.btn,
.btn .btn-default {
    background: transparent;
    color: #b8bfc6;
}

.ty-table-edit {
    border-top: 1px solid gray;
    background-color: #363B40;
}

.popover-title {
    background: transparent;
}

.md-image>.md-meta {
    color: #BBBBBB;
    background: transparent;
}

.md-expand.md-image>.md-meta {
    color: #DDD;
}

#write>h3:before,
#write>h4:before,
#write>h5:before,
#write>h6:before {
    border: none;
    border-radius: 0px;
    color: #888;
    text-decoration: underline;
    left: -1.4rem;
    top: 0.2rem;
}

#write>h3.md-focus:before {
    top: 2px;
}

#write>h4.md-focus:before {
    top: 2px;
}

.md-toc-item {
    color: #A8C2DC;
}

#write div.md-toc-tooltip {
    background-color: #363B40;
}

.dropdown-menu .btn:hover,
.dropdown-menu .btn:focus,
.md-toc .btn:hover,
.md-toc .btn:focus {
    color: white;
    background: black;
}

#toc-dropmenu {
    background: rgba(50, 54, 59, 0.93);
    border: 1px solid rgba(253, 253, 253, 0.15);
}

#toc-dropmenu .divider {
    background-color: #9b9b9b;
}

.outline-expander:before {
    top: 2px;
}

#typora-sidebar {
    box-shadow: none;
    border-right: 1px dashed;
    border-right: none;
}

.sidebar-tabs {
    border-bottom:0;
}

#typora-sidebar:hover .outline-title-wrapper {
    border-left: 1px dashed;
}

.outline-title-wrapper .btn {
    color: inherit;
}

.outline-item:hover {
    border-color: #363B40;
    background-color: #363B40;
    color: white;
}

h1.md-focus .md-attr,
h2.md-focus .md-attr,
h3.md-focus .md-attr,
h4.md-focus .md-attr,
h5.md-focus .md-attr,
h6.md-focus .md-attr,
.md-header-span .md-attr {
    color: #8C8E92;
    display: inline;
}

.md-comment {
    color: #5a95e3;
    opacity: 0.8;
}

.md-inline-math svg {
    color: #b8bfc6;
}

#math-inline-preview .md-arrow:after {
    background: black;
}

.modal-content {
    background: var(--bg-color);
    border: 0;
}

.modal-title {
    font-size: 1.5em;
}

.modal-content input {
    background-color: rgba(26, 21, 21, 0.51);
    color: white;
}

.modal-content .input-group-addon {
    color: white;
}

.modal-backdrop {
    background-color: rgba(174, 174, 174, 0.7);
}

.modal-content .btn-primary {
    border-color: var(--primary-color);
}

.md-table-resize-popover {
    background-color: #333;
}

.form-inline .input-group .input-group-addon {
    color: white;
}

#md-searchpanel {
    border-bottom: 1px dashed grey;
}

/** UI for electron */

.context-menu,
#spell-check-panel,
#footer-word-count-info {
    background-color: #42464A;
}

.context-menu.dropdown-menu .divider,
.dropdown-menu .divider {
    background-color: #777777;
    opacity: 1;
}

footer {
    color: inherit;
}

@media (max-width: 1000px) {
    footer {
        border-top: none;
    }
    footer:hover {
        color: inherit;
    }
}

#file-info-file-path .file-info-field-value:hover {
    background-color: #555;
    color: #dedede;
}

.megamenu-content,
.megamenu-opened header {
    background: var(--bg-color);
}

.megamenu-menu-panel h2,
.megamenu-menu-panel h1,
.long-btn {
    color: inherit;
}

.megamenu-menu-panel input[type='text'] {
    background: inherit;
    border: 0;
    border-bottom: 1px solid;
}

#recent-file-panel-action-btn {
    background: inherit;
    border: 1px grey solid;
}

.megamenu-menu-panel .dropdown-menu > li > a {
    color: inherit;
    background-color: #2F353A;
    text-decoration: none;
}

.megamenu-menu-panel table td:nth-child(1) {
    color: inherit;
    font-weight: bold;
}

.megamenu-menu-panel tbody tr:hover td:nth-child(1) {
    color: white;
}

.modal-footer .btn-default, 
.modal-footer .btn-primary,
.modal-footer .btn-default:not(:hover) {
    border: 1px solid;
    border-color: transparent;
}

.btn-primary {
    color: white;
}

.btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
    color: white;
    border: 1px solid #ddd;
    background-color: inherit;
}

.modal-header {
    border-bottom: 0;
}

.modal-footer {
    border-top: 0;
}

#recent-file-panel tbody tr:nth-child(2n-1) {
    background-color: transparent !important;
}

.megamenu-menu-panel tbody tr:hover td:nth-child(2) {
    color: inherit;
}

.megamenu-menu-panel .btn {
    border: 1px solid #eee;
    background: transparent;
}

.mouse-hover .toolbar-icon.btn:hover,
#w-full.mouse-hover,
#w-pin.mouse-hover {
    background-color: inherit;
}

.typora-node::-webkit-scrollbar {
    width: 5px;
}

.typora-node::-webkit-scrollbar-thumb:vertical {
    background: rgba(250, 250, 250, 0.3);
}

.typora-node::-webkit-scrollbar-thumb:vertical:active {
    background: rgba(250, 250, 250, 0.5);
}

#w-unpin {
    background-color: #4182c4;
}

#top-titlebar, #top-titlebar * {
    color: var(--item-hover-text-color);
}

.typora-sourceview-on #toggle-sourceview-btn,
#footer-word-count:hover,
.ty-show-word-count #footer-word-count {
    background: #333333;
}

#toggle-sourceview-btn:hover {
    color: #eee;
    background: #333333;
}

/** focus mode */
.on-focus-mode .md-end-block:not(.md-focus):not(.md-focus-container) * {
    color: #686868 !important;
}

.on-focus-mode .md-end-block:not(.md-focus) img,
.on-focus-mode .md-task-list-item:not(.md-focus-container)>input {
    opacity: #686868 !important;
}

.on-focus-mode li[cid]:not(.md-focus-container){
    color: #686868;
}

.on-focus-mode .md-fences.md-focus .CodeMirror-code>*:not(.CodeMirror-activeline) *,
.on-focus-mode .CodeMirror.cm-s-inner:not(.CodeMirror-focused) * {
    color: #686868 !important;
}

.on-focus-mode .md-focus,
.on-focus-mode .md-focus-container {
    color: #fff;
}

.on-focus-mode #typora-source .CodeMirror-code>*:not(.CodeMirror-activeline) * {
    color: #686868 !important;
}


/*diagrams*/
#write .md-focus .md-diagram-panel {
    border: 1px solid #ddd;
    margin-left: -1px;
    width: calc(100% + 2px);
}

/*diagrams*/
#write .md-focus.md-fences-with-lineno .md-diagram-panel {
    margin-left: auto;
}

.md-diagram-panel-error {
    color: #f1908e;
}

.active-tab-files #info-panel-tab-file,
.active-tab-files #info-panel-tab-file:hover,
.active-tab-outline #info-panel-tab-outline,
.active-tab-outline #info-panel-tab-outline:hover {
    color: #eee;
}

.sidebar-footer-item:hover,
.footer-item:hover {
    background: inherit;
    color: white;
}

.ty-side-sort-btn.active,
.ty-side-sort-btn:hover,
.selected-folder-menu-item a:after {
    color: white;
}

#sidebar-files-menu {
    border:solid 1px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.79);
    background-color: var(--bg-color);
}

.file-list-item {
    border-bottom:none;
}

.file-list-item-summary {
    opacity: 1;
}

.file-list-item.active:first-child {
    border-top: none;
}

.file-node-background {
    height: 32px;
}

.file-library-node.active>.file-node-content,
.file-list-item.active {
    color: white;
    color: var(--active-file-text-color);
}

.file-library-node.active>.file-node-background{
    background-color: rgb(34, 34, 34);
    background-color: var(--active-file-bg-color);
}
.file-list-item.active {
    background-color: rgb(34, 34, 34);
    background-color: var(--active-file-bg-color);
}

#ty-tooltip {
    background-color: black;
    color: #eee;
}

.md-task-list-item>input {
    margin-left: -1.3em;
    margin-top: 0.3rem;
    -webkit-appearance: none;
}

.md-mathjax-midline {
    background-color: #57616b;
    border-bottom: none;
}

footer.ty-footer {
    border-color: #656565;
}

.ty-preferences .btn-default {
    background: transparent;
}
.ty-preferences .btn-default:hover {
    background: #57616b;
}

.ty-preferences select {
    border: 1px solid #989698;
    height: 21px;
}

.ty-preferences .nav-group-item.active,
.export-item.active,
.export-items-list-control,
.export-detail {
    background: var(--item-hover-bg-color);
}

.ty-preferences input[type="search"] {
    border-color: #333;
    background: #333;
    line-height: 22px;
    border-radius: 6px;
    color: white;
}

.ty-preferences input[type="search"]:focus {
    box-shadow: none;
}

[data-is-directory="true"] .file-node-content {
    margin-bottom: 0;
}

.file-node-title {
    line-height: 22px;
}

.html-for-mac .file-node-open-state, .html-for-mac .file-node-icon {
    line-height: 26px;
}

::-webkit-scrollbar-thumb {
    background: rgba(230, 230, 230, 0.30);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(230, 230, 230, 0.50);
}

#typora-sidebar:hover div.sidebar-content-content::-webkit-scrollbar-thumb:horizontal {
    background: rgba(230, 230, 230, 0.30);
}

.nav-group-item:active {
    background-color: #474d54 !important;
}

.md-search-hit {
    background: rgba(199, 140, 60, 0.81);
    color: #eee;
}

.md-search-hit * {
    color: #eee;
}

#md-searchpanel input {
    color: white;
}

.modal-backdrop.in {
    opacity: 1;
    backdrop-filter: blur(1px);
}

.clear-btn-icon {
    top: 8px;
}

/* try fix https://github.com/typora/typora-issues/issues/5253 */
.file-node-expanded>.file-node-children {
    display: grid;
  }

.md-alert-text-note {
    color: rgb(47, 129, 247);
}
.md-alert-text-important {
    color: rgb(163, 113, 247);
}
.md-alert-text-warning {
    color:  rgb(210, 153, 34);
}

 @media print { @page {margin: 0 0 0 0;} body.typora-export {padding-left: 0; padding-right: 0;} #write {padding:0;}}
</style><title></title>
</head>
<body class='typora-export'><div class='typora-export-content'>
<div id='write'  class=''><h1 id='pct1-pct1）'><span>pct(1) PCT（1）</span></h1><p><strong><span>Proxmox Server Solutions GmbH</span>
<span>Proxmox 服务器解决方案有限公司</span></strong>
<a href='mailto:[support@proxmox.com](mailto:support@proxmox.com)' target='_blank' class='url'>[support@proxmox.com](mailto:support@proxmox.com)</a>
<span>version 8.2.3, Wed Jul 31 16:58:41 CEST 2024</span>
<span>版本 8.2.3， 星期三 Jul 31 16：58：41 CEST 2024</span></p><h2 id='name-名字'><span>NAME 名字</span></h2><p><span>pct - Tool to manage Linux Containers (LXC) on Proxmox VE</span>
<span>pct - 在 Proxmox VE 上管理 Linux 容器 （LXC） 的工具</span></p><h2 id='synopsis-概要'><span>SYNOPSIS 概要</span></h2><p><strong><span>pct</span></strong><span> </span><COMMAND><span> [ARGS] [OPTIONS]</span>
<strong><span>PCT</span></strong><span> </span><command><span> [ARGS] [选项]</span></p><p><strong><span>pct clone</span></strong><span> </span><vmid><span> </span><newid><span> [OPTIONS]</span>
<strong><span>pct clone</span></strong><span> </span><vmid><span> </span><newid><span> [选项]</span></p><p><span>Create a container clone/copy</span>
<span>创建容器克隆/复制</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><newid><span>: </span><integer><span> (100 - 999999999) </span><newid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>VMID for the clone. 克隆的 VMID。</span></p></li><li><p><span>--bwlimit </span><number><span> (0 - N) (</span><em><span>default =</span></em><span> clone limit from datacenter or storage config) --bwlimit </span><number><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 来自数据中心或存储配置的克隆限制）</span></p><p><span>Override I/O bandwidth limit (in KiB/s). 覆盖 I/O 带宽限制（以 KiB/s 为单位）。</span></p></li><li><p><span>--description </span><string></p><p><span>Description for the new CT. 新 CT 的说明。</span></p></li><li><p><span>--full </span><boolean></p><p><span>Create a full copy of all disks. This is always done when you clone a normal CT. For CT templates, we try to create a linked clone by default. 创建所有磁盘的完整副本。当您克隆正常 CT 时，始终会执行此操作。对于 CT 模板，我们默认尝试创建链接克隆。</span></p></li><li><p><span>--hostname </span><string><span> --主机名 </span><string></p><p><span>Set a hostname for the new CT. 为新 CT 设置主机名。</span></p></li><li><p><span>--pool </span><string></p><p><span>Add the new CT to the specified pool. 将新的 CT 添加到指定的池中。</span></p></li><li><p><span>--snapname </span><string></p><p><span>The name of the snapshot. 快照的名称。</span></p></li><li><p><span>--storage </span><storage ID><span> --storage &lt;存储 ID&gt;</span></p><p><span>Target storage for full clone. 完整克隆的目标存储。</span></p></li><li><p><span>--target </span><string></p><p><span>Target node. Only allowed if the original VM is on shared storage. 目标节点。仅当原始 VM 位于共享存储上时才允许。</span></p></li></ul><p><strong><span>pct config</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct config</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Get container configuration.</span>
<span>获取容器配置。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--current </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --current </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Get current values (instead of pending values). 获取当前值（而不是挂起值）。</span></p></li><li><p><span>--snapshot </span><string></p><p><span>Fetch config values from given snapshot. 从给定的快照中获取配置值。</span></p></li></ul><p><strong><span>pct console</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct 控制台</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Launch a console for the specified container.</span>
<span>启动指定容器的控制台。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--escape \^?[a-z] (</span><em><span>default =</span></em><span> ^a) --逃脱 \^？[a-z]（</span><em><span>默认值 =</span></em><span> ^a）</span></p><p><span>Escape sequence prefix. For example to use &lt;Ctrl+b q&gt; as the escape sequence pass </span><em><span>^b</span></em><span>. 转义序列前缀。例如，用作转义序列传递 </span><em><span>^b</span></em><span>。</span></p></li></ul><p><strong><span>pct cpusets PCT CPU集</span></strong></p><p><span>Print the list of assigned CPU sets.</span>
<span>打印已分配的 CPU 集的列表。</span></p><p><strong><span>pct create</span></strong><span> </span><vmid><span> </span><ostemplate><span> [OPTIONS]</span>
<strong><span>pct create</span></strong><span> </span><vmid><span> </span><ostemplate><span> [选项]</span></p><p><span>Create or restore a container.</span>
<span>创建或还原容器。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><ostemplate><span>: </span><string><span> </span><ostemplate><span>： </span><string></p><p><span>The OS template or backup file. 操作系统模板或备份文件。</span></p></li><li><p><span>--arch &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt; (</span><em><span>default =</span></em><span> amd64) --arch &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt;（</span><em><span>默认值 =</span></em><span> amd64）</span></p><p><span>OS architecture type. 操作系统体系结构类型。</span></p></li><li><p><span>--bwlimit </span><number><span> (0 - N) (</span><em><span>default =</span></em><span> restore limit from datacenter or storage config) --bwlimit </span><number><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 从数据中心或存储配置还原限制）</span></p><p><span>Override I/O bandwidth limit (in KiB/s). 覆盖 I/O 带宽限制（以 KiB/s 为单位）。</span></p></li><li><p><span>--cmode &lt;console | shell | tty&gt; (</span><em><span>default =</span></em><span> tty) --cmode &lt;console | shell | tty&gt;（</span><em><span>默认值 =</span></em><span> tty）</span></p><p><span>Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to </span><em><span>console</span></em><span> it tries to attach to /dev/console instead. If you set cmode to </span><em><span>shell</span></em><span>, it simply invokes a shell inside the container (no login). 控制台模式。默认情况下，console 命令会尝试打开与其中一个可用 tty 设备的连接。通过将 cmode 设置为 </span><em><span>console</span></em><span>，它会尝试连接到 /dev/console。如果将 cmode 设置为 </span><em><span>shell</span></em><span>，它只会在容器内调用一个 shell（无需登录）。</span></p></li><li><p><span>--console </span><boolean><span> (</span><em><span>default =</span></em><span> 1) --console </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）</span></p><p><span>Attach a console device (/dev/console) to the container. 将控制台设备 （/dev/console） 连接到容器。</span></p></li><li><p><span>--cores </span><integer><span> (1 - 8192) --cores </span><integer><span> （1 - 8192）</span></p><p><span>The number of cores assigned to the container. A container can use all available cores by default. 分配给容器的核心数。默认情况下，容器可以使用所有可用核心。</span></p></li><li><p><span>--cpulimit </span><number><span> (0 - 8192) (</span><em><span>default =</span></em><span> 0) --cpulimit </span><number><span> （0 - 8192） （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Limit of CPU usage. CPU 使用率限制。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRG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0A4lTHmTVePKgWzpDGJGpc8CDTlEsuo88++wxXDA0UIUbAOP23KGZKjI48KnkuhcbiPbPCOBoeBikO%0ALk2VxjqNRilaAEqSZGEAbN261bZt+zW33XY7IAXXm6Ou0YhIMamaaUOl5WRrzg00viuKWWxpQUOH%0ANAZFQRpD48Xlkig0MTHBB95zG+VSylz1KCbWyDOh2XyK+56IqjWMKigkUnzWnPPFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>If the computer has 2 CPUs, it has a total of </span><em><span>2</span></em><span> CPU time. Value </span><em><span>0</span></em><span> indicates no CPU limit. 如果计算机有 2 个 CPU，则总共有 </span><em><span>2</span></em><span> 个 CPU 时间。值 </span><em><span>0</span></em><span> 表示没有 CPU 限制。</span></p></li><li><p><span>--cpuunits </span><integer><span> (0 - 500000) (</span><em><span>default =</span></em><span> cgroup v1: 1024, cgroup v2: 100) --cpuunits </span><integer><span> （0 - 500000） （</span><em><span>默认值 =</span></em><span> cgroup v1： 1024， cgroup v2： 100）</span></p><p><span>CPU weight for a container, will be clamped to [1, 10000] in cgroup v2. 容器的 CPU 权重，将在 cgroup v2 中被限制为 [1， 10000]。</span></p></li><li><p><span>--debug </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --debug </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Try to be more verbose. For now this only enables debug log-level on start. 尽量更详细。目前，这仅在启动时启用调试日志级别。</span></p></li><li><p><span>--description </span><string></p><p><span>Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file. 容器的说明。显示在 Web 界面 CT 的摘要中。这将在配置文件中另存为注释。</span></p></li><li><p><span>--dev[n] [[path=]</span><Path><span>] [,gid=</span><integer><span>] [,mode=</span><Octal access mode><span>] [,uid=</span><integer><span>] --dev[n] [[path=]</span><Path><span>] [，gid=</span><integer><span>] [，mode=</span><ctal access mode><span>] [，uid=</span><integer><span>]</span></p><p><span>Device to pass through to the container 要传递到容器的设备</span></p></li><li><p><span>--features [force_rw_sys=&lt;1|0&gt;] [,fuse=&lt;1|0&gt;] [,keyctl=&lt;1|0&gt;] [,mknod=&lt;1|0&gt;] [,mount=&lt;fstype;fstype;...&gt;] [,nesting=&lt;1|0&gt;] --features [force_rw_sys=&lt;1|0&gt;] [，fuse=&lt;1|0&gt;] [，keyctl=&lt;1|0&gt;] [，mknod=&lt;1|0&gt;] [，mount=&lt;fstype;fstype;...&gt;] [，nesting=&lt;1|0&gt;]</span></p><p><span>Allow containers access to advanced features. 允许容器访问高级功能。</span></p></li><li><p><span>--force </span><boolean></p><p><span>Allow to overwrite existing container. 允许覆盖现有容器。</span></p></li><li><p><span>--hookscript </span><string></p><p><span>Script that will be exectued during various steps in the containers lifetime. 将在容器生命周期中的各个步骤中执行的脚本。</span></p></li><li><p><span>--hostname </span><string><span> --主机名 </span><string></p><p><span>Set a host name for the container. 为容器设置主机名。</span></p></li><li><p><span>--ignore-unpack-errors </span><boolean></p><p><span>Ignore errors when extracting the template. 提取模板时忽略错误。</span></p></li><li><p><span>--lock &lt;backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete&gt;</span></p><p><span>Lock/unlock the container. 锁定/解锁容器。</span></p></li><li><p><span>--memory </span><integer><span> (16 - N) (</span><em><span>default =</span></em><span> 512) --memory </span><integer><span> （16 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of RAM for the container in MB. 容器的 RAM 量（以 MB 为单位）。</span></p></li><li><p><span>--mp[n] [volume=]</span><volume><span> ,mp=</span><Path><span> [,acl=&lt;1|0&gt;] [,backup=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] --mp[n] [volume=]</span><volume><span> ，mp=</span><Path><span> [，acl=&lt;1|0&gt;] [，backup=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. 使用卷作为容器挂载点。使用特殊语法 STORAGE_ID：SIZE_IN_GiB 分配新卷。</span></p></li><li><p><span>--nameserver </span><string></p><p><span>Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 服务器 IP 地址。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>--net[n] name=</span><string><span> [,bridge=</span><bridge><span>] [,firewall=&lt;1|0&gt;] [,gw=</span><GatewayIPv4><span>] [,gw6=</span><GatewayIPv6><span>] [,hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span>] [,ip=&lt;(IPv4/CIDR|dhcp|manual)&gt;] [,ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt;] [,link_down=&lt;1|0&gt;] [,mtu=</span><integer><span>] [,rate=</span><mbps><span>] [,tag=</span><integer><span>] [,trunks=&lt;vlanid[;vlanid...]&gt;] [,type=</span><veth><span>] --net[n] name=</span><string><span> [，bridge=</span><bridge><span>] [，firewall=&lt;1|0&gt;] [，gw=</span><GatewayIPv4><span>] [，gw6=</span><GatewayIPv6><span>] [，hwaddr=&lt;XX：XX：XX：XX：XX：XX&gt;] [，ip=&lt;（IPv4/CIDR|dhcp|manual）&gt;] [，ip6=&lt;（IPv6/CIDR|auto|dhcp|manual）&gt;] [，link_down=&lt;1|0&gt;] [，mtu=</span><integer><span>] [，rate=</span><mbps><span>] [，tag=</span><integer><span>] [，trunks=&lt;vlanid[;弗拉尼德...]&gt;] [，类型=</span><veth><span>]</span></p><p><span>Specifies network interfaces for the container. 指定容器的网络接口。</span></p></li><li><p><span>--onboot </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --onboot </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Specifies whether a container will be started during system bootup. 指定是否在系统启动期间启动容器。</span></p></li><li><p><span>--ostype &lt;alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged&gt;</span></p><p><span>OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/</span><ostype><span>.common.conf. Value </span><em><span>unmanaged</span></em><span> can be used to skip and OS specific setup. 操作系统类型。这用于在容器内部设置配置，对应于 /usr/share/lxc/config/.common.conf 中的 lxc 设置脚本。值 </span><em><span>unmanaged</span></em><span> 可用于跳过和特定于操作系统的设置。</span></p></li><li><p><span>--password </span><password><span> --密码 &lt;密码&gt;</span></p><p><span>Sets root password inside container. 在容器内设置 root 密码。</span></p></li><li><p><span>--pool </span><string></p><p><span>Add the VM to the specified pool. 将 VM 添加到指定的池中。</span></p></li><li><p><span>--protection </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --protection </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation. 设置容器的保护标志。这将阻止 CT 或 CT 的磁盘删除/更新操作。</span></p></li><li><p><span>--restore </span><boolean></p><p><span>Mark this as restore task. 将此标记为还原任务。</span></p></li><li><p><span>--rootfs [volume=]</span><volume><span> [,acl=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] --rootfs [volume=]</span><volume><span> [，acl=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container root. 使用卷作为容器根目录。</span></p></li><li><p><span>--searchdomain </span><string></p><p><span>Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 搜索域。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>--ssh-public-keys </span><filepath><span> --ssh-公钥 &lt;文件路径&gt;</span></p><p><span>Setup public SSH keys (one key per line, OpenSSH format). 设置公共 SSH 密钥（每行一个密钥，OpenSSH 格式）。</span></p></li><li><p><span>--start </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --start </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Start the CT after its creation finished successfully. 在成功创建 CT 后启动 CT。</span></p></li><li><p><span>--startup </span><code>[[order=]\d+] [,up=\d+] [,down=\d+]</code><span> --startup &#39;[[订单=]\d+] [，up=\d+] [，down=\d+] &#39;</span></p><p><span>Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the </span><em><span>up</span></em><span> or </span><em><span>down</span></em><span> delay in seconds, which specifies a delay to wait before the next VM is started or stopped. 启动和关闭行为。Order 是一个非负数，用于定义一般启动顺序。通过反向排序完成关机。此外，还可以设置</span><em><span>启动</span></em><span>或</span><em><span>关闭</span></em><span>延迟（以秒为单位），这指定了在启动或停止下一个 VM 之前要等待的延迟。</span></p></li><li><p><span>--storage </span><storage ID><span> (</span><em><span>default =</span></em><span> local) --storage &lt;存储 ID&gt;（</span><em><span>默认值 =</span></em><span> 本地）</span></p><p><span>Default Storage. 默认存储。</span></p></li><li><p><span>--swap </span><integer><span> (0 - N) (</span><em><span>default =</span></em><span> 512) --swap </span><integer><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of SWAP for the container in MB. 容器的 SWAP 量（以 MB 为单位）。</span></p></li><li><p><span>--tags </span><string><span> --标签 </span><string></p><p><span>Tags of the Container. This is only meta information. 容器的标记。这只是元信息。</span></p></li><li><p><span>--template </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --template </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Enable/disable Template. 启用/禁用模板。</span></p></li><li><p><span>--timezone </span><string></p><p><span>Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to </span><em><span>host</span></em><span> to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab 要在容器中使用的时区。如果未设置选项，则不会执行任何操作。可以设置为</span><em><span>主机</span></em><span>以匹配主机时区，或从 /usr/share/zoneinfo/zone.tab 中设置任意时区选项</span></p></li><li><p><span>--tty </span><integer><span> (0 - 6) (</span><em><span>default =</span></em><span> 2) --tty </span><integer><span> （0 - 6） （</span><em><span>默认值 =</span></em><span> 2）</span></p><p><span>Specify the number of tty available to the container 指定容器可用的 tty 数量</span></p></li><li><p><span>--unique </span><boolean><span> --唯一 </span><boolean></p><p><span>Assign a unique random ethernet address. 分配一个唯一的随机以太网地址。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgpGlKjPEF%0A0TpT5pUDRXiVt99+Le03r+WzuytM1gO6pB/3+o0cbxvk8yOPMjW6i2iR2lxOjJDHSDMFogmGwzQ7%0ArRJAUpAENAGXIZq2AFzQpvkACCEQcahP+cRH3sKHn9zH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/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>Requires option(s): restore 需要选项： restore</span></p></li><li><p><span>--unprivileged </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --unprivileged </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Makes the container run as unprivileged user. (Should not be modified manually.) 使容器以非特权用户身份运行。（不应手动修改。</span></p></li><li><p><span>--unused[n] [volume=]</span><volume><span> --未使用[n] [音量=]&lt;音量&gt;</span></p><p><span>Reference to unused volumes. This is used internally, and should not be modified manually. 对未使用卷的引用。这是在内部使用的，不应手动修改。</span></p></li></ul><p><strong><span>pct delsnapshot</span></strong><span> </span><vmid><span> </span><snapname><span> [OPTIONS]</span>
<strong><span>pct delsnapshot</span></strong><span> </span><vmid><span> </span><snapname><span> [选项]</span></p><p><span>Delete a LXC snapshot. 删除 LXC 快照。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><snapname><span>: </span><string><span> </span><snapname><span>： </span><string></p><p><span>The name of the snapshot. 快照的名称。</span></p></li><li><p><span>--force </span><boolean></p><p><span>For removal from config file, even if removing disk snapshots fails. 用于从配置文件中删除，即使删除磁盘快照失败。</span></p></li></ul><p><strong><span>pct destroy</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct destroy</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Destroy the container (also delete all uses files).</span>
<span>销毁容器（同时删除所有使用的文件）。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--destroy-unreferenced-disks </span><boolean></p><p><span>If set, destroy additionally all disks with the VMID from all enabled storages which are not referenced in the config. 如果设置了，请从配置中未引用的所有已启用存储中额外销毁具有 VMID 的所有磁盘。</span></p></li><li><p><span>--force </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --force </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Force destroy, even if running. 强制销毁，即使正在运行。</span></p></li><li><p><span>--purge </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --purge </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Remove container from all related configurations. For example, backup jobs, replication jobs or HA. Related ACLs and Firewall entries will </span><strong><span>always</span></strong><span> be removed. 从所有相关配置中删除容器。例如，备份作业、复制作业或 HA。相关的 ACL 和防火墙条目</span><strong><span>将始终</span></strong><span>被删除。</span></p></li></ul><p><strong><span>pct df</span></strong><span> </span><vmid></p><p><span>Get the container’s current disk usage.</span>
<span>获取容器的当前磁盘使用情况。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct enter</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct enter</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Launch a shell for the specified container.</span>
<span>启动指定容器的 shell。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--keep-env </span><boolean><span> (</span><em><span>default =</span></em><span> 1) --keep-env </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）</span></p><p><span>Keep the current environment. This option will disabled by default with PVE 9. If you rely on a preserved environment, please use this option to be future-proof. 保持当前环境。默认情况下，此选项将在 PVE 9 中禁用。如果您依赖于保留的环境，请使用此选项以实现未来需求。</span></p></li></ul><p><strong><span>pct exec</span></strong><span> </span><vmid><span> [</span><extra-args><span>] [OPTIONS]</span>
<strong><span>pct exec</span></strong><span> </span><vmid><span> [</span><extra-args><span>] [选项]</span></p><p><span>Launch a command inside the specified container.</span>
<span>在指定的容器内启动命令。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><extra-args><span>: </span><array><span> </span><extra-args><span>： </span><array></p><p><span>Extra arguments as array 作为数组的额外参数</span></p></li><li><p><span>--keep-env </span><boolean><span> (</span><em><span>default =</span></em><span> 1) --keep-env </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）</span></p><p><span>Keep the current environment. This option will disabled by default with PVE 9. If you rely on a preserved environment, please use this option to be future-proof. 保持当前环境。默认情况下，此选项将在 PVE 9 中禁用。如果您依赖于保留的环境，请使用此选项以实现未来需求。</span></p></li></ul><p><strong><span>pct fsck</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct fsck</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Run a filesystem check (fsck) on a container volume.</span>
<span>在容器卷上运行文件系统检查 （fsck）。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--device &lt;mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs&gt; --装置</span></p><p><span>A volume on which to run the filesystem check 要运行文件系统检查的卷</span></p></li><li><p><span>--force </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --force </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Force checking, even if the filesystem seems clean 强制检查，即使文件系统看起来很干净</span></p></li></ul><p><strong><span>pct fstrim</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct fstrim</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Run fstrim on a chosen CT and its mountpoints, except bind or read-only mountpoints.</span>
<span>在选定的 CT 及其挂载点上运行 fstrim，绑定或只读挂载点除外。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--ignore-mountpoints </span><boolean></p><p><span>Skip all mountpoints, only do fstrim on the container root. 跳过所有挂载点，只在容器根目录上做 fstrim。</span></p></li></ul><p><strong><span>pct help</span></strong><span> [OPTIONS]</span>
<strong><span>pct help</span></strong><span> [选项]</span></p><p><span>Get help about specified command.</span>
<span>获取有关指定命令的帮助。</span></p><ul><li><p><span>--extra-args </span><array></p><p><span>Shows help for a specific command 显示特定命令的帮助</span></p></li><li><p><span>--verbose </span><boolean><span> --详细 </span><boolean></p><p><span>Verbose output format. 详细的输出格式。</span></p></li></ul><p><strong><span>pct list PCT清单</span></strong></p><p><span>LXC container index (per node).</span>
<span>LXC 容器索引（每个节点）。</span></p><p><strong><span>pct listsnapshot</span></strong><span> </span><vmid></p><p><span>List all snapshots. 列出所有快照。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct migrate</span></strong><span> </span><vmid><span> </span><target><span> [OPTIONS]</span>
<strong><span>pct 迁移</span></strong><span> </span><vmid><span> </span><target><span> [选项]</span></p><p><span>Migrate the container to another node. Creates a new migration task.</span>
<span>将容器迁移到另一个节点。创建新的迁移任务。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><target><span>: </span><string><span> </span><target><span>： &lt;字符串&gt;</span></p><p><span>Target node. 目标节点。</span></p></li><li><p><span>--bwlimit </span><number><span> (0 - N) (</span><em><span>default =</span></em><span> migrate limit from datacenter or storage config) --bwlimit </span><number><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 从数据中心或存储配置迁移限制）</span></p><p><span>Override I/O bandwidth limit (in KiB/s). 覆盖 I/O 带宽限制（以 KiB/s 为单位）。</span></p></li><li><p><span>--online </span><boolean></p><p><span>Use online/live migration. 使用在线/实时迁移。</span></p></li><li><p><span>--restart </span><boolean></p><p><span>Use restart migration 使用重新启动迁移</span></p></li><li><p><span>--target-storage </span><string></p><p><span>Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value </span><em><span>1</span></em><span> will map each source storage to itself. 从源存储映射到目标存储。仅提供单个存储 ID 会将所有源存储映射到该存储。提供特殊值 </span><em><span>1</span></em><span> 会将每个源存储映射到自身。</span></p></li><li><p><span>--timeout </span><integer><span> (</span><em><span>default =</span></em><span> 180) --timeout </span><integer><span>（</span><em><span>默认值 =</span></em><span> 180）</span></p><p><span>Timeout in seconds for shutdown for restart migration 重新启动迁移的关机超时（以秒为单位）</span></p></li></ul><p><strong><span>pct mount</span></strong><span> </span><vmid>
<strong><span>pct 挂载</span></strong><span> </span><vmid></p><p><span>Mount the container’s filesystem on the host. This will hold a lock on the container and is meant for emergency maintenance only as it will prevent further operations on the container other than start and stop.</span>
<span>在主机上挂载容器的文件系统。这将在容器上锁定，并且仅用于紧急维护，因为它将阻止对容器进行除启动和停止之外的进一步操作。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct move-volume</span></strong><span> </span><vmid><span> </span><volume><span> [</span><storage><span>] [</span><target-vmid><span>] [</span><target-volume><span>] [OPTIONS]</span>
<strong><span>pct 移动体积</span></strong><span> </span><vmid><span> &lt;体积&gt; [</span><storage><span>] [</span><target-vmid><span>] [&lt;目标体积&gt;] [选项]</span></p><p><span>Move a rootfs-/mp-volume to a different storage or to a different container.</span>
<span>将 rootfs-/mp-volume 移动到不同的存储或不同的容器。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><volume><span>: &lt;mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99&gt; &lt;体积&gt;：</span></p><p><span>Volume which will be moved. 将被移动的卷。</span></p></li><li><p><storage><span>: </span><storage ID><span> &lt;存储&gt;： &lt;存储ID&gt;</span></p><p><span>Target Storage. 目标存储。</span></p></li><li><p><target-vmid><span>: </span><integer><span> (100 - 999999999) </span><target-vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><target-volume><span>: &lt;mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs | unused0 | unused1 | unused10 | unused100 | unused101 | unused102 | unused103 | unused104 | unused105 | unused106 | unused107 | unused108 | unused109 | unused11 | unused110 | unused111 | unused112 | unused113 | unused114 | unused115 | unused116 | unused117 | unused118 | unused119 | unused12 | unused120 | unused121 | unused122 | unused123 | unused124 | unused125 | unused126 | unused127 | unused128 | unused129 | unused13 | unused130 | unused131 | unused132 | unused133 | unused134 | unused135 | unused136 | unused137 | unused138 | unused139 | unused14 | unused140 | unused141 | unused142 | unused143 | unused144 | unused145 | unused146 | unused147 | unused148 | unused149 | unused15 | unused150 | unused151 | unused152 | unused153 | unused154 | unused155 | unused156 | unused157 | unused158 | unused159 | unused16 | unused160 | unused161 | unused162 | unused163 | unused164 | unused165 | unused166 | unused167 | unused168 | unused169 | unused17 | unused170 | unused171 | unused172 | unused173 | unused174 | unused175 | unused176 | unused177 | unused178 | unused179 | unused18 | unused180 | unused181 | unused182 | unused183 | unused184 | unused185 | unused186 | unused187 | unused188 | unused189 | unused19 | unused190 | unused191 | unused192 | unused193 | unused194 | unused195 | unused196 | unused197 | unused198 | unused199 | unused2 | unused20 | unused200 | unused201 | unused202 | unused203 | unused204 | unused205 | unused206 | unused207 | unused208 | unused209 | unused21 | unused210 | unused211 | unused212 | unused213 | unused214 | unused215 | unused216 | unused217 | unused218 | unused219 | unused22 | unused220 | unused221 | unused222 | unused223 | unused224 | unused225 | unused226 | unused227 | unused228 | unused229 | unused23 | unused230 | unused231 | unused232 | unused233 | unused234 | unused235 | unused236 | unused237 | unused238 | unused239 | unused24 | unused240 | unused241 | unused242 | unused243 | unused244 | unused245 | unused246 | unused247 | unused248 | unused249 | unused25 | unused250 | unused251 | unused252 | unused253 | unused254 | unused255 | unused26 | unused27 | unused28 | unused29 | unused3 | unused30 | unused31 | unused32 | unused33 | unused34 | unused35 | unused36 | unused37 | unused38 | unused39 | unused4 | unused40 | unused41 | unused42 | unused43 | unused44 | unused45 | unused46 | unused47 | unused48 | unused49 | unused5 | unused50 | unused51 | unused52 | unused53 | unused54 | unused55 | unused56 | unused57 | unused58 | unused59 | unused6 | unused60 | unused61 | unused62 | unused63 | unused64 | unused65 | unused66 | unused67 | unused68 | unused69 | unused7 | unused70 | unused71 | unused72 | unused73 | unused74 | unused75 | unused76 | unused77 | unused78 | unused79 | unused8 | unused80 | unused81 | unused82 | unused83 | unused84 | unused85 | unused86 | unused87 | unused88 | unused89 | unused9 | unused90 | unused91 | unused92 | unused93 | unused94 | unused95 | unused96 | unused97 | unused98 | unused99&gt; &lt;目标卷&gt;：</span></p><p><span>The config key the volume will be moved to. Default is the source volume key. 卷将移动到的配置键。默认值为源音量键。</span></p></li><li><p><span>--bwlimit </span><number><span> (0 - N) (</span><em><span>default =</span></em><span> clone limit from datacenter or storage config) --bwlimit </span><number><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 来自数据中心或存储配置的克隆限制）</span></p><p><span>Override I/O bandwidth limit (in KiB/s). 覆盖 I/O 带宽限制（以 KiB/s 为单位）。</span></p></li><li><p><span>--delete </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --delete </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Delete the original volume after successful copy. By default the original is kept as an unused volume entry. 成功复制后删除原始卷。默认情况下，原始文件将保留为未使用的卷条目。</span></p></li><li><p><span>--digest </span><string></p><p><span>Prevent changes if current configuration file has different SHA1 &quot; . &quot;digest. This can be used to prevent concurrent modifications. 如果当前配置文件具有不同的 SHA1 “ .消化。这可用于防止并发修改。</span></p></li><li><p><span>--target-digest </span><string></p><p><span>Prevent changes if current configuration file of the target &quot; . &quot;container has a different SHA1 digest. This can be used to prevent &quot; . &quot;concurrent modifications. 如果目标的当前配置文件为“.容器具有不同的 SHA1 摘要。这可以用来防止“ .并发修改。</span></p></li></ul><p><strong><span>pct move_volume</span></strong></p><p><span>An alias for </span><em><span>pct move-volume</span></em><span>.</span>
<em><span>pct move-volume</span></em><span> 的别名。</span></p><p><strong><span>pct pending</span></strong><span> </span><vmid>
<strong><span>pct 待定</span></strong><span> </span><vmid></p><p><span>Get container configuration, including pending changes.</span>
<span>获取容器配置，包括挂起的更改。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct pull</span></strong><span> </span><vmid><span> </span><path><span> </span><destination><span> [OPTIONS]</span>
<strong><span>pct pull</span></strong><span> </span><vmid><span> </span><path><span> </span><destination><span> [选项]</span></p><p><span>Copy a file from the container to the local system.</span>
<span>将文件从容器复制到本地系统。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><path><span>: </span><string><span> </span><path><span>： </span><string></p><p><span>Path to a file inside the container to pull. 容器内要拉取的文件的路径。</span></p></li><li><p><destination><span>: </span><string><span> </span><destination><span>： </span><string></p><p><span>Destination 目的地</span></p></li><li><p><span>--group </span><string><span> --组 </span><string></p><p><span>Owner group name or id. 所有者组名称或 ID。</span></p></li><li><p><span>--perms </span><string></p><p><span>File permissions to use (octal by default, prefix with </span><em><span>0x</span></em><span> for hexadecimal). 要使用的文件权限（默认为八进制，十六进制以 </span><em><span>0x</span></em><span> 为前缀）。</span></p></li><li><p><span>--user </span><string></p><p><span>Owner user name or id. 所有者用户名或 ID。</span></p></li></ul><p><strong><span>pct push</span></strong><span> </span><vmid><span> </span><file><span> </span><destination><span> [OPTIONS]</span>
<strong><span>pct push</span></strong><span> </span><vmid><span> </span><file><span> </span><destination><span> [选项]</span></p><p><span>Copy a local file to the container.</span>
<span>将本地文件复制到容器中。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><file><span>: </span><string><span> </span><file><span>： </span><string></p><p><span>Path to a local file. 本地文件的路径。</span></p></li><li><p><destination><span>: </span><string><span> </span><destination><span>： </span><string></p><p><span>Destination inside the container to write to. 要写入的容器内的目标。</span></p></li><li><p><span>--group </span><string><span> --组 </span><string></p><p><span>Owner group name or id. When using a name it must exist inside the container. 所有者组名称或 ID。使用名称时，它必须存在于容器内。</span></p></li><li><p><span>--perms </span><string></p><p><span>File permissions to use (octal by default, prefix with </span><em><span>0x</span></em><span> for hexadecimal). 要使用的文件权限（默认为八进制，十六进制以 </span><em><span>0x</span></em><span> 为前缀）。</span></p></li><li><p><span>--user </span><string></p><p><span>Owner user name or id. When using a name it must exist inside the container. 所有者用户名或 ID。使用名称时，它必须存在于容器内。</span></p></li></ul><p><strong><span>pct reboot</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct reboot</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Reboot the container by shutting it down, and starting it again. Applies pending changes.</span>
<span>通过关闭容器并重新启动容器来重新启动容器。应用挂起的更改。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--timeout </span><integer><span> (0 - N) --超时 </span><integer><span> （0 - N）</span></p><p><span>Wait maximal timeout seconds for the shutdown. 等待最大超时秒数以关机。</span></p></li></ul><p><strong><span>pct remote-migrate</span></strong><span> </span><vmid><span> [</span><target-vmid><span>] </span><target-endpoint><span> --target-bridge </span><string><span> --target-storage </span><string><span> [OPTIONS]</span>
<strong><span>pct remote-migrate</span></strong><span> </span><vmid><span> [</span><target-vmid><span>] </span><target-endpoint><span> --target-bridge </span><string><span> --target-storage </span><string><span> [选项]</span></p><p><span>Migrate container to a remote cluster. Creates a new migration task. EXPERIMENTAL feature!</span>
<span>将容器迁移到远程集群。创建新的迁移任务。实验性功能！</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><target-vmid><span>: </span><integer><span> (100 - 999999999) </span><target-vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><target-endpoint><span>: apitoken=</span><a href='mailto:PVEAPIToken=user@realm!token=SECRET' target='_blank' class='url'>PVEAPIToken=user@realm!token=SECRET</a><span> ,host=</span><ADDRESS><span> [,fingerprint=</span><FINGERPRINT><span>] [,port=</span><PORT><span>] </span><target-endpoint><span>： apitoken=</span><a href='mailto:PVEAPIToken=user@realm！token=SECRET' target='_blank' class='url'>PVEAPIToken=user@realm！token=SECRET</a><span> ，host=</span><ADDRESS><span> [，fingerprint=</span><FINGERPRINT><span>] [，port=</span><PORT><span>]</span></p><p><span>Remote target endpoint 远程目标端点</span></p></li><li><p><span>--bwlimit </span><integer><span> (0 - N) (</span><em><span>default =</span></em><span> migrate limit from datacenter or storage config) --bwlimit </span><integer><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 从数据中心或存储配置迁移限制）</span></p><p><span>Override I/O bandwidth limit (in KiB/s). 覆盖 I/O 带宽限制（以 KiB/s 为单位）。</span></p></li><li><p><span>--delete </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --delete </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Delete the original CT and related data after successful migration. By default the original CT is kept on the source cluster in a stopped state. 迁移成功后，删除原始CT及相关数据。默认情况下，原始 CT 在源集群上保持停止状态。</span></p></li><li><p><span>--online </span><boolean></p><p><span>Use online/live migration. 使用在线/实时迁移。</span></p></li><li><p><span>--restart </span><boolean></p><p><span>Use restart migration 使用重新启动迁移</span></p></li><li><p><span>--target-bridge </span><string></p><p><span>Mapping from source to target bridges. Providing only a single bridge ID maps all source bridges to that bridge. Providing the special value </span><em><span>1</span></em><span> will map each source bridge to itself. 从源网桥到目标网桥的映射。仅提供单个网桥 ID 会将所有源网桥映射到该网桥。提供特殊值 </span><em><span>1</span></em><span> 会将每个源桥映射到自身。</span></p></li><li><p><span>--target-storage </span><string></p><p><span>Mapping from source to target storages. Providing only a single storage ID maps all source storages to that storage. Providing the special value </span><em><span>1</span></em><span> will map each source storage to itself. 从源存储映射到目标存储。仅提供单个存储 ID 会将所有源存储映射到该存储。提供特殊值 </span><em><span>1</span></em><span> 会将每个源存储映射到自身。</span></p></li><li><p><span>--timeout </span><integer><span> (</span><em><span>default =</span></em><span> 180) --timeout </span><integer><span>（</span><em><span>默认值 =</span></em><span> 180）</span></p><p><span>Timeout in seconds for shutdown for restart migration 重新启动迁移的关机超时（以秒为单位）</span></p></li></ul><p><strong><span>pct rescan</span></strong><span> [OPTIONS]</span>
<strong><span>pct 重新扫描</span></strong><span> [选项]</span></p><p><span>Rescan all storages and update disk sizes and unused disk images.</span>
<span>重新扫描所有存储并更新磁盘大小和未使用的磁盘映像。</span></p><ul><li><p><span>--dryrun </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --dryrun </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Do not actually write changes out to conifg. 实际上不要将更改写出到 conifg。</span></p></li><li><p><span>--vmid </span><integer><span> (100 - 999999999) --vmid </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct resize</span></strong><span> </span><vmid><span> </span><disk><span> </span><size><span> [OPTIONS]</span>
<strong><span>pct 调整大小</span></strong><span> </span><vmid><span> </span><disk><span> </span><size><span> [选项]</span></p><p><span>Resize a container mount point.</span>
<span>调整容器挂载点的大小。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><disk><span>: &lt;mp0 | mp1 | mp10 | mp100 | mp101 | mp102 | mp103 | mp104 | mp105 | mp106 | mp107 | mp108 | mp109 | mp11 | mp110 | mp111 | mp112 | mp113 | mp114 | mp115 | mp116 | mp117 | mp118 | mp119 | mp12 | mp120 | mp121 | mp122 | mp123 | mp124 | mp125 | mp126 | mp127 | mp128 | mp129 | mp13 | mp130 | mp131 | mp132 | mp133 | mp134 | mp135 | mp136 | mp137 | mp138 | mp139 | mp14 | mp140 | mp141 | mp142 | mp143 | mp144 | mp145 | mp146 | mp147 | mp148 | mp149 | mp15 | mp150 | mp151 | mp152 | mp153 | mp154 | mp155 | mp156 | mp157 | mp158 | mp159 | mp16 | mp160 | mp161 | mp162 | mp163 | mp164 | mp165 | mp166 | mp167 | mp168 | mp169 | mp17 | mp170 | mp171 | mp172 | mp173 | mp174 | mp175 | mp176 | mp177 | mp178 | mp179 | mp18 | mp180 | mp181 | mp182 | mp183 | mp184 | mp185 | mp186 | mp187 | mp188 | mp189 | mp19 | mp190 | mp191 | mp192 | mp193 | mp194 | mp195 | mp196 | mp197 | mp198 | mp199 | mp2 | mp20 | mp200 | mp201 | mp202 | mp203 | mp204 | mp205 | mp206 | mp207 | mp208 | mp209 | mp21 | mp210 | mp211 | mp212 | mp213 | mp214 | mp215 | mp216 | mp217 | mp218 | mp219 | mp22 | mp220 | mp221 | mp222 | mp223 | mp224 | mp225 | mp226 | mp227 | mp228 | mp229 | mp23 | mp230 | mp231 | mp232 | mp233 | mp234 | mp235 | mp236 | mp237 | mp238 | mp239 | mp24 | mp240 | mp241 | mp242 | mp243 | mp244 | mp245 | mp246 | mp247 | mp248 | mp249 | mp25 | mp250 | mp251 | mp252 | mp253 | mp254 | mp255 | mp26 | mp27 | mp28 | mp29 | mp3 | mp30 | mp31 | mp32 | mp33 | mp34 | mp35 | mp36 | mp37 | mp38 | mp39 | mp4 | mp40 | mp41 | mp42 | mp43 | mp44 | mp45 | mp46 | mp47 | mp48 | mp49 | mp5 | mp50 | mp51 | mp52 | mp53 | mp54 | mp55 | mp56 | mp57 | mp58 | mp59 | mp6 | mp60 | mp61 | mp62 | mp63 | mp64 | mp65 | mp66 | mp67 | mp68 | mp69 | mp7 | mp70 | mp71 | mp72 | mp73 | mp74 | mp75 | mp76 | mp77 | mp78 | mp79 | mp8 | mp80 | mp81 | mp82 | mp83 | mp84 | mp85 | mp86 | mp87 | mp88 | mp89 | mp9 | mp90 | mp91 | mp92 | mp93 | mp94 | mp95 | mp96 | mp97 | mp98 | mp99 | rootfs&gt; </span><disk><span>：</span></p><p><span>The disk you want to resize. 要调整大小的磁盘。</span></p></li><li><p><size><span>: </span><span>+</span><span>?\d+(</span><span>.</span><span>\d+)?[KMGT]? </span><size><span>： </span><span>+</span><span>？\d+（</span><span>.</span><span>\d+）？[KMGT]？</span></p><p><span>The new size. With the </span><em><span>+</span></em><span> sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported. 新尺寸。使用 + 号时，该值将添加到体积的实际大小时，如果没有 </span><em><span>+</span></em><span> 号，该值将被视为绝对值。不支持缩小磁盘大小。</span></p></li><li><p><span>--digest </span><string></p><p><span>Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. 如果当前配置文件具有不同的 SHA1 摘要，则防止更改。这可用于防止并发修改。</span></p></li></ul><p><strong><span>pct restore</span></strong><span> </span><vmid><span> </span><ostemplate><span> [OPTIONS]</span>
<strong><span>pct restore</span></strong><span> </span><vmid><span> </span><ostemplate><span> [选项]</span></p><p><span>Create or restore a container.</span>
<span>创建或还原容器。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><ostemplate><span>: </span><string><span> </span><ostemplate><span>： </span><string></p><p><span>The OS template or backup file. 操作系统模板或备份文件。</span></p></li><li><p><span>--arch &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt; (</span><em><span>default =</span></em><span> amd64) --arch &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt;（</span><em><span>默认值 =</span></em><span> amd64）</span></p><p><span>OS architecture type. 操作系统体系结构类型。</span></p></li><li><p><span>--bwlimit </span><number><span> (0 - N) (</span><em><span>default =</span></em><span> restore limit from datacenter or storage config) --bwlimit </span><number><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 从数据中心或存储配置还原限制）</span></p><p><span>Override I/O bandwidth limit (in KiB/s). 覆盖 I/O 带宽限制（以 KiB/s 为单位）。</span></p></li><li><p><span>--cmode &lt;console | shell | tty&gt; (</span><em><span>default =</span></em><span> tty) --cmode &lt;console | shell | tty&gt;（</span><em><span>默认值 =</span></em><span> tty）</span></p><p><span>Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to </span><em><span>console</span></em><span> it tries to attach to /dev/console instead. If you set cmode to </span><em><span>shell</span></em><span>, it simply invokes a shell inside the container (no login). 控制台模式。默认情况下，console 命令会尝试打开与其中一个可用 tty 设备的连接。通过将 cmode 设置为 </span><em><span>console</span></em><span>，它会尝试连接到 /dev/console。如果将 cmode 设置为 </span><em><span>shell</span></em><span>，它只会在容器内调用一个 shell（无需登录）。</span></p></li><li><p><span>--console </span><boolean><span> (</span><em><span>default =</span></em><span> 1) --console </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）</span></p><p><span>Attach a console device (/dev/console) to the container. 将控制台设备 （/dev/console） 连接到容器。</span></p></li><li><p><span>--cores </span><integer><span> (1 - 8192) --cores </span><integer><span> （1 - 8192）</span></p><p><span>The number of cores assigned to the container. A container can use all available cores by default. 分配给容器的核心数。默认情况下，容器可以使用所有可用核心。</span></p></li><li><p><span>--cpulimit </span><number><span> (0 - 8192) (</span><em><span>default =</span></em><span> 0) --cpulimit </span><number><span> （0 - 8192） （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Limit of CPU usage. CPU 使用率限制。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B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KWWxpQUOH%0ANAZFQRpD48Xlkig0MTHBB95zG+VSylz1KCbWyDOh2XyK+56IqjWMKigkUnzWnPPFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>If the computer has 2 CPUs, it has a total of </span><em><span>2</span></em><span> CPU time. Value </span><em><span>0</span></em><span> indicates no CPU limit. 如果计算机有 2 个 CPU，则总共有 </span><em><span>2</span></em><span> 个 CPU 时间。值 </span><em><span>0</span></em><span> 表示没有 CPU 限制。</span></p></li><li><p><span>--cpuunits </span><integer><span> (0 - 500000) (</span><em><span>default =</span></em><span> cgroup v1: 1024, cgroup v2: 100) --cpuunits </span><integer><span> （0 - 500000） （</span><em><span>默认值 =</span></em><span> cgroup v1： 1024， cgroup v2： 100）</span></p><p><span>CPU weight for a container, will be clamped to [1, 10000] in cgroup v2. 容器的 CPU 权重，将在 cgroup v2 中被限制为 [1， 10000]。</span></p></li><li><p><span>--debug </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --debug </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Try to be more verbose. For now this only enables debug log-level on start. 尽量更详细。目前，这仅在启动时启用调试日志级别。</span></p></li><li><p><span>--description </span><string></p><p><span>Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file. 容器的说明。显示在 Web 界面 CT 的摘要中。这将在配置文件中另存为注释。</span></p></li><li><p><span>--dev[n] [[path=]</span><Path><span>] [,gid=</span><integer><span>] [,mode=</span><Octal access mode><span>] [,uid=</span><integer><span>] --dev[n] [[path=]</span><Path><span>] [，gid=</span><integer><span>] [，mode=</span><ctal access mode><span>] [，uid=</span><integer><span>]</span></p><p><span>Device to pass through to the container 要传递到容器的设备</span></p></li><li><p><span>--features [force_rw_sys=&lt;1|0&gt;] [,fuse=&lt;1|0&gt;] [,keyctl=&lt;1|0&gt;] [,mknod=&lt;1|0&gt;] [,mount=&lt;fstype;fstype;...&gt;] [,nesting=&lt;1|0&gt;] --features [force_rw_sys=&lt;1|0&gt;] [，fuse=&lt;1|0&gt;] [，keyctl=&lt;1|0&gt;] [，mknod=&lt;1|0&gt;] [，mount=&lt;fstype;fstype;...&gt;] [，nesting=&lt;1|0&gt;]</span></p><p><span>Allow containers access to advanced features. 允许容器访问高级功能。</span></p></li><li><p><span>--force </span><boolean></p><p><span>Allow to overwrite existing container. 允许覆盖现有容器。</span></p></li><li><p><span>--hookscript </span><string></p><p><span>Script that will be exectued during various steps in the containers lifetime. 将在容器生命周期中的各个步骤中执行的脚本。</span></p></li><li><p><span>--hostname </span><string><span> --主机名 </span><string></p><p><span>Set a host name for the container. 为容器设置主机名。</span></p></li><li><p><span>--ignore-unpack-errors </span><boolean></p><p><span>Ignore errors when extracting the template. 提取模板时忽略错误。</span></p></li><li><p><span>--lock &lt;backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete&gt;</span></p><p><span>Lock/unlock the container. 锁定/解锁容器。</span></p></li><li><p><span>--memory </span><integer><span> (16 - N) (</span><em><span>default =</span></em><span> 512) --memory </span><integer><span> （16 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of RAM for the container in MB. 容器的 RAM 量（以 MB 为单位）。</span></p></li><li><p><span>--mp[n] [volume=]</span><volume><span> ,mp=</span><Path><span> [,acl=&lt;1|0&gt;] [,backup=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] --mp[n] [volume=]</span><volume><span> ，mp=</span><Path><span> [，acl=&lt;1|0&gt;] [，backup=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. 使用卷作为容器挂载点。使用特殊语法 STORAGE_ID：SIZE_IN_GiB 分配新卷。</span></p></li><li><p><span>--nameserver </span><string></p><p><span>Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 服务器 IP 地址。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>--net[n] name=</span><string><span> [,bridge=</span><bridge><span>] [,firewall=&lt;1|0&gt;] [,gw=</span><GatewayIPv4><span>] [,gw6=</span><GatewayIPv6><span>] [,hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span>] [,ip=&lt;(IPv4/CIDR|dhcp|manual)&gt;] [,ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt;] [,link_down=&lt;1|0&gt;] [,mtu=</span><integer><span>] [,rate=</span><mbps><span>] [,tag=</span><integer><span>] [,trunks=&lt;vlanid[;vlanid...]&gt;] [,type=</span><veth><span>] --net[n] name=</span><string><span> [，bridge=</span><bridge><span>] [，firewall=&lt;1|0&gt;] [，gw=</span><GatewayIPv4><span>] [，gw6=</span><GatewayIPv6><span>] [，hwaddr=&lt;XX：XX：XX：XX：XX：XX&gt;] [，ip=&lt;（IPv4/CIDR|dhcp|manual）&gt;] [，ip6=&lt;（IPv6/CIDR|auto|dhcp|manual）&gt;] [，link_down=&lt;1|0&gt;] [，mtu=</span><integer><span>] [，rate=</span><mbps><span>] [，tag=</span><integer><span>] [，trunks=&lt;vlanid[;弗拉尼德...]&gt;] [，类型=</span><veth><span>]</span></p><p><span>Specifies network interfaces for the container. 指定容器的网络接口。</span></p></li><li><p><span>--onboot </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --onboot </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Specifies whether a container will be started during system bootup. 指定是否在系统启动期间启动容器。</span></p></li><li><p><span>--ostype &lt;alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged&gt;</span></p><p><span>OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/</span><ostype><span>.common.conf. Value </span><em><span>unmanaged</span></em><span> can be used to skip and OS specific setup. 操作系统类型。这用于在容器内部设置配置，对应于 /usr/share/lxc/config/.common.conf 中的 lxc 设置脚本。值 </span><em><span>unmanaged</span></em><span> 可用于跳过和特定于操作系统的设置。</span></p></li><li><p><span>--password </span><password><span> --密码 &lt;密码&gt;</span></p><p><span>Sets root password inside container. 在容器内设置 root 密码。</span></p></li><li><p><span>--pool </span><string></p><p><span>Add the VM to the specified pool. 将 VM 添加到指定的池中。</span></p></li><li><p><span>--protection </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --protection </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation. 设置容器的保护标志。这将阻止 CT 或 CT 的磁盘删除/更新操作。</span></p></li><li><p><span>--rootfs [volume=]</span><volume><span> [,acl=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] --rootfs [volume=]</span><volume><span> [，acl=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container root. 使用卷作为容器根目录。</span></p></li><li><p><span>--searchdomain </span><string></p><p><span>Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 搜索域。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>--ssh-public-keys </span><filepath><span> --ssh-公钥 &lt;文件路径&gt;</span></p><p><span>Setup public SSH keys (one key per line, OpenSSH format). 设置公共 SSH 密钥（每行一个密钥，OpenSSH 格式）。</span></p></li><li><p><span>--start </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --start </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Start the CT after its creation finished successfully. 在成功创建 CT 后启动 CT。</span></p></li><li><p><span>--startup </span><code>[[order=]\d+] [,up=\d+] [,down=\d+]</code><span> --startup &#39;[[订单=]\d+] [，up=\d+] [，down=\d+] &#39;</span></p><p><span>Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the </span><em><span>up</span></em><span> or </span><em><span>down</span></em><span> delay in seconds, which specifies a delay to wait before the next VM is started or stopped. 启动和关闭行为。Order 是一个非负数，用于定义一般启动顺序。通过反向排序完成关机。此外，还可以设置</span><em><span>启动</span></em><span>或</span><em><span>关闭</span></em><span>延迟（以秒为单位），这指定了在启动或停止下一个 VM 之前要等待的延迟。</span></p></li><li><p><span>--storage </span><storage ID><span> (</span><em><span>default =</span></em><span> local) --storage &lt;存储 ID&gt;（</span><em><span>默认值 =</span></em><span> 本地）</span></p><p><span>Default Storage. 默认存储。</span></p></li><li><p><span>--swap </span><integer><span> (0 - N) (</span><em><span>default =</span></em><span> 512) --swap </span><integer><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of SWAP for the container in MB. 容器的 SWAP 量（以 MB 为单位）。</span></p></li><li><p><span>--tags </span><string><span> --标签 </span><string></p><p><span>Tags of the Container. This is only meta information. 容器的标记。这只是元信息。</span></p></li><li><p><span>--template </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --template </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Enable/disable Template. 启用/禁用模板。</span></p></li><li><p><span>--timezone </span><string></p><p><span>Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to </span><em><span>host</span></em><span> to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab 要在容器中使用的时区。如果未设置选项，则不会执行任何操作。可以设置为</span><em><span>主机</span></em><span>以匹配主机时区，或从 /usr/share/zoneinfo/zone.tab 中设置任意时区选项</span></p></li><li><p><span>--tty </span><integer><span> (0 - 6) (</span><em><span>default =</span></em><span> 2) --tty </span><integer><span> （0 - 6） （</span><em><span>默认值 =</span></em><span> 2）</span></p><p><span>Specify the number of tty available to the container 指定容器可用的 tty 数量</span></p></li><li><p><span>--unique </span><boolean><span> --唯一 </span><boolean></p><p><span>Assign a unique random ethernet address. 分配一个唯一的随机以太网地址。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAw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+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>Requires option(s): restore 需要选项： restore</span></p></li><li><p><span>--unprivileged </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --unprivileged </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Makes the container run as unprivileged user. (Should not be modified manually.) 使容器以非特权用户身份运行。（不应手动修改。</span></p></li><li><p><span>--unused[n] [volume=]</span><volume><span> --未使用[n] [音量=]&lt;音量&gt;</span></p><p><span>Reference to unused volumes. This is used internally, and should not be modified manually. 对未使用卷的引用。这是在内部使用的，不应手动修改。</span></p></li></ul><p><strong><span>pct resume</span></strong><span> </span><vmid>
<strong><span>pct 恢复</span></strong><span> </span><vmid></p><p><span>Resume the container. 恢复容器。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct rollback</span></strong><span> </span><vmid><span> </span><snapname><span> [OPTIONS]</span>
<strong><span>pct 回滚</span></strong><span> </span><vmid><span> </span><snapname><span> [选项]</span></p><p><span>Rollback LXC state to specified snapshot.</span>
<span>将 LXC 状态回滚到指定的快照。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><snapname><span>: </span><string><span> </span><snapname><span>： </span><string></p><p><span>The name of the snapshot. 快照的名称。</span></p></li><li><p><span>--start </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --start </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Whether the container should get started after rolling back successfully 成功回滚后容器是否应启动</span></p></li></ul><p><strong><span>pct set</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct set</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Set container options. 设置容器选项。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--arch &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt; (</span><em><span>default =</span></em><span> amd64) --arch &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt;（</span><em><span>默认值 =</span></em><span> amd64）</span></p><p><span>OS architecture type. 操作系统体系结构类型。</span></p></li><li><p><span>--cmode &lt;console | shell | tty&gt; (</span><em><span>default =</span></em><span> tty) --cmode &lt;console | shell | tty&gt;（</span><em><span>默认值 =</span></em><span> tty）</span></p><p><span>Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to </span><em><span>console</span></em><span> it tries to attach to /dev/console instead. If you set cmode to </span><em><span>shell</span></em><span>, it simply invokes a shell inside the container (no login). 控制台模式。默认情况下，console 命令会尝试打开与其中一个可用 tty 设备的连接。通过将 cmode 设置为 </span><em><span>console</span></em><span>，它会尝试连接到 /dev/console。如果将 cmode 设置为 </span><em><span>shell</span></em><span>，它只会在容器内调用一个 shell（无需登录）。</span></p></li><li><p><span>--console </span><boolean><span> (</span><em><span>default =</span></em><span> 1) --console </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）</span></p><p><span>Attach a console device (/dev/console) to the container. 将控制台设备 （/dev/console） 连接到容器。</span></p></li><li><p><span>--cores </span><integer><span> (1 - 8192) --cores </span><integer><span> （1 - 8192）</span></p><p><span>The number of cores assigned to the container. A container can use all available cores by default. 分配给容器的核心数。默认情况下，容器可以使用所有可用核心。</span></p></li><li><p><span>--cpulimit </span><number><span> (0 - 8192) (</span><em><span>default =</span></em><span> 0) --cpulimit </span><number><span> （0 - 8192） （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Limit of CPU usage. CPU 使用率限制。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgpGlKjPEF%0A0TpT5pUDRXiVt99+Le03r+WzuytM1gO6pB/3+o0cbxvk8yOPMjW6i2iR2lxOjJDHSDMFogmGwzQ7%0ArRJAUpAENAGXIZq2AFzQpvkACCEQcahP+cRH3sKHn9zHXU+MM7rtGeD33NDXzaZynZU9gcezpUw9%0AX6OzIyOakkfF4QEpPG6nDRNNEA2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0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>If the computer has 2 CPUs, it has a total of </span><em><span>2</span></em><span> CPU time. Value </span><em><span>0</span></em><span> indicates no CPU limit. 如果计算机有 2 个 CPU，则总共有 </span><em><span>2</span></em><span> 个 CPU 时间。值 </span><em><span>0</span></em><span> 表示没有 CPU 限制。</span></p></li><li><p><span>--cpuunits </span><integer><span> (0 - 500000) (</span><em><span>default =</span></em><span> cgroup v1: 1024, cgroup v2: 100) --cpuunits </span><integer><span> （0 - 500000） （</span><em><span>默认值 =</span></em><span> cgroup v1： 1024， cgroup v2： 100）</span></p><p><span>CPU weight for a container, will be clamped to [1, 10000] in cgroup v2. 容器的 CPU 权重，将在 cgroup v2 中被限制为 [1， 10000]。</span></p></li><li><p><span>--debug </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --debug </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Try to be more verbose. For now this only enables debug log-level on start. 尽量更详细。目前，这仅在启动时启用调试日志级别。</span></p></li><li><p><span>--delete </span><string><span> --删除 </span><string></p><p><span>A list of settings you want to delete. 要删除的设置列表。</span></p></li><li><p><span>--description </span><string></p><p><span>Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file. 容器的说明。显示在 Web 界面 CT 的摘要中。这将在配置文件中另存为注释。</span></p></li><li><p><span>--dev[n] [[path=]</span><Path><span>] [,gid=</span><integer><span>] [,mode=</span><Octal access mode><span>] [,uid=</span><integer><span>] --dev[n] [[path=]</span><Path><span>] [，gid=</span><integer><span>] [，mode=</span><ctal access mode><span>] [，uid=</span><integer><span>]</span></p><p><span>Device to pass through to the container 要传递到容器的设备</span></p></li><li><p><span>--digest </span><string></p><p><span>Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. 如果当前配置文件具有不同的 SHA1 摘要，则防止更改。这可用于防止并发修改。</span></p></li><li><p><span>--features [force_rw_sys=&lt;1|0&gt;] [,fuse=&lt;1|0&gt;] [,keyctl=&lt;1|0&gt;] [,mknod=&lt;1|0&gt;] [,mount=&lt;fstype;fstype;...&gt;] [,nesting=&lt;1|0&gt;] --features [force_rw_sys=&lt;1|0&gt;] [，fuse=&lt;1|0&gt;] [，keyctl=&lt;1|0&gt;] [，mknod=&lt;1|0&gt;] [，mount=&lt;fstype;fstype;...&gt;] [，nesting=&lt;1|0&gt;]</span></p><p><span>Allow containers access to advanced features. 允许容器访问高级功能。</span></p></li><li><p><span>--hookscript </span><string></p><p><span>Script that will be exectued during various steps in the containers lifetime. 将在容器生命周期中的各个步骤中执行的脚本。</span></p></li><li><p><span>--hostname </span><string><span> --主机名 </span><string></p><p><span>Set a host name for the container. 为容器设置主机名。</span></p></li><li><p><span>--lock &lt;backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete&gt;</span></p><p><span>Lock/unlock the container. 锁定/解锁容器。</span></p></li><li><p><span>--memory </span><integer><span> (16 - N) (</span><em><span>default =</span></em><span> 512) --memory </span><integer><span> （16 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of RAM for the container in MB. 容器的 RAM 量（以 MB 为单位）。</span></p></li><li><p><span>--mp[n] [volume=]</span><volume><span> ,mp=</span><Path><span> [,acl=&lt;1|0&gt;] [,backup=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] --mp[n] [volume=]</span><volume><span> ，mp=</span><Path><span> [，acl=&lt;1|0&gt;] [，backup=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. 使用卷作为容器挂载点。使用特殊语法 STORAGE_ID：SIZE_IN_GiB 分配新卷。</span></p></li><li><p><span>--nameserver </span><string></p><p><span>Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 服务器 IP 地址。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>--net[n] name=</span><string><span> [,bridge=</span><bridge><span>] [,firewall=&lt;1|0&gt;] [,gw=</span><GatewayIPv4><span>] [,gw6=</span><GatewayIPv6><span>] [,hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span>] [,ip=&lt;(IPv4/CIDR|dhcp|manual)&gt;] [,ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt;] [,link_down=&lt;1|0&gt;] [,mtu=</span><integer><span>] [,rate=</span><mbps><span>] [,tag=</span><integer><span>] [,trunks=&lt;vlanid[;vlanid...]&gt;] [,type=</span><veth><span>] --net[n] name=</span><string><span> [，bridge=</span><bridge><span>] [，firewall=&lt;1|0&gt;] [，gw=</span><GatewayIPv4><span>] [，gw6=</span><GatewayIPv6><span>] [，hwaddr=&lt;XX：XX：XX：XX：XX：XX&gt;] [，ip=&lt;（IPv4/CIDR|dhcp|manual）&gt;] [，ip6=&lt;（IPv6/CIDR|auto|dhcp|manual）&gt;] [，link_down=&lt;1|0&gt;] [，mtu=</span><integer><span>] [，rate=</span><mbps><span>] [，tag=</span><integer><span>] [，trunks=&lt;vlanid[;弗拉尼德...]&gt;] [，类型=</span><veth><span>]</span></p><p><span>Specifies network interfaces for the container. 指定容器的网络接口。</span></p></li><li><p><span>--onboot </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --onboot </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Specifies whether a container will be started during system bootup. 指定是否在系统启动期间启动容器。</span></p></li><li><p><span>--ostype &lt;alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged&gt;</span></p><p><span>OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/</span><ostype><span>.common.conf. Value </span><em><span>unmanaged</span></em><span> can be used to skip and OS specific setup. 操作系统类型。这用于在容器内部设置配置，对应于 /usr/share/lxc/config/.common.conf 中的 lxc 设置脚本。值 </span><em><span>unmanaged</span></em><span> 可用于跳过和特定于操作系统的设置。</span></p></li><li><p><span>--protection </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --protection </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation. 设置容器的保护标志。这将阻止 CT 或 CT 的磁盘删除/更新操作。</span></p></li><li><p><span>--revert </span><string></p><p><span>Revert a pending change. 还原挂起的更改。</span></p></li><li><p><span>--rootfs [volume=]</span><volume><span> [,acl=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] --rootfs [volume=]</span><volume><span> [，acl=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container root. 使用卷作为容器根目录。</span></p></li><li><p><span>--searchdomain </span><string></p><p><span>Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 搜索域。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>--startup </span><code>[[order=]\d+] [,up=\d+] [,down=\d+]</code><span> --startup &#39;[[订单=]\d+] [，up=\d+] [，down=\d+] &#39;</span></p><p><span>Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the </span><em><span>up</span></em><span> or </span><em><span>down</span></em><span> delay in seconds, which specifies a delay to wait before the next VM is started or stopped. 启动和关闭行为。Order 是一个非负数，用于定义一般启动顺序。通过反向排序完成关机。此外，还可以设置</span><em><span>启动</span></em><span>或</span><em><span>关闭</span></em><span>延迟（以秒为单位），这指定了在启动或停止下一个 VM 之前要等待的延迟。</span></p></li><li><p><span>--swap </span><integer><span> (0 - N) (</span><em><span>default =</span></em><span> 512) --swap </span><integer><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of SWAP for the container in MB. 容器的 SWAP 量（以 MB 为单位）。</span></p></li><li><p><span>--tags </span><string><span> --标签 </span><string></p><p><span>Tags of the Container. This is only meta information. 容器的标记。这只是元信息。</span></p></li><li><p><span>--template </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --template </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Enable/disable Template. 启用/禁用模板。</span></p></li><li><p><span>--timezone </span><string></p><p><span>Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to </span><em><span>host</span></em><span> to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab 要在容器中使用的时区。如果未设置选项，则不会执行任何操作。可以设置为</span><em><span>主机</span></em><span>以匹配主机时区，或从 /usr/share/zoneinfo/zone.tab 中设置任意时区选项</span></p></li><li><p><span>--tty </span><integer><span> (0 - 6) (</span><em><span>default =</span></em><span> 2) --tty </span><integer><span> （0 - 6） （</span><em><span>默认值 =</span></em><span> 2）</span></p><p><span>Specify the number of tty available to the container 指定容器可用的 tty 数量</span></p></li><li><p><span>--unprivileged </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --unprivileged </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Makes the container run as unprivileged user. (Should not be modified manually.) 使容器以非特权用户身份运行。（不应手动修改。</span></p></li><li><p><span>--unused[n] [volume=]</span><volume><span> --未使用[n] [音量=]&lt;音量&gt;</span></p><p><span>Reference to unused volumes. This is used internally, and should not be modified manually. 对未使用卷的引用。这是在内部使用的，不应手动修改。</span></p></li></ul><p><strong><span>pct shutdown</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct shutdown</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Shutdown the container. This will trigger a clean shutdown of the container, see lxc-stop(1) for details.</span>
<span>关闭容器。这将触发容器的干净关闭，详见 lxc-stop（1）。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--forceStop </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --forceStop </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Make sure the Container stops. 确保容器停止。</span></p></li><li><p><span>--timeout </span><integer><span> (0 - N) (</span><em><span>default =</span></em><span> 60) --timeout </span><integer><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 60）</span></p><p><span>Wait maximal timeout seconds. 等待最大超时秒数。</span></p></li></ul><p><strong><span>pct snapshot</span></strong><span> </span><vmid><span> </span><snapname><span> [OPTIONS]</span>
<strong><span>pct snapshot</span></strong><span> </span><vmid><span> </span><snapname><span> [选项]</span></p><p><span>Snapshot a container. 为容器拍摄快照。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><snapname><span>: </span><string><span> </span><snapname><span>： </span><string></p><p><span>The name of the snapshot. 快照的名称。</span></p></li><li><p><span>--description </span><string></p><p><span>A textual description or comment. 文本描述或注释。</span></p></li></ul><p><strong><span>pct start</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct start</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Start the container. 启动容器。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--debug </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --debug </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>If set, enables very verbose debug log-level on start. 如果设置，则在启动时启用非常详细的调试日志级别。</span></p></li><li><p><span>--skiplock </span><boolean></p><p><span>Ignore locks - only root is allowed to use this option. 忽略锁 - 只允许 root 使用此选项。</span></p></li></ul><p><strong><span>pct status</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct status</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Show CT status. 显示 CT 状态。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--verbose </span><boolean><span> --详细 </span><boolean></p><p><span>Verbose output format 详细输出格式</span></p></li></ul><p><strong><span>pct stop</span></strong><span> </span><vmid><span> [OPTIONS]</span>
<strong><span>pct stop</span></strong><span> </span><vmid><span> [选项]</span></p><p><span>Stop the container. This will abruptly stop all processes running in the container.</span>
<span>停止容器。这将突然停止在容器中运行的所有进程。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li><li><p><span>--overrule-shutdown </span><boolean><span> (</span><em><span>default =</span></em><span> 0) --overrule-shutdown </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Try to abort active </span><em><span>vzshutdown</span></em><span> tasks before stopping. 尝试在停止之前中止活动的 </span><em><span>vzshutdown</span></em><span> 任务。</span></p></li><li><p><span>--skiplock </span><boolean></p><p><span>Ignore locks - only root is allowed to use this option. 忽略锁 - 只允许 root 使用此选项。</span></p></li></ul><p><strong><span>pct suspend</span></strong><span> </span><vmid>
<strong><span>pct 挂起</span></strong><span> </span><vmid></p><p><span>Suspend the container. This is experimental.</span>
<span>暂停容器。这是实验性的。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct template</span></strong><span> </span><vmid>
<strong><span>pct 模板</span></strong><span> </span><vmid></p><p><span>Create a Template. 创建模板。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct unlock</span></strong><span> </span><vmid>
<strong><span>pct 解锁</span></strong><span> </span><vmid></p><p><span>Unlock the VM. 解锁 VM。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><p><strong><span>pct unmount</span></strong><span> </span><vmid>
<strong><span>pct 卸载</span></strong><span> </span><vmid></p><p><span>Unmount the container’s filesystem.</span>
<span>卸载容器的文件系统。</span></p><ul><li><p><vmid><span>: </span><integer><span> (100 - 999999999) </span><vmid><span>： </span><integer><span> （100 - 999999999）</span></p><p><span>The (unique) ID of the VM. VM 的（唯一）ID。</span></p></li></ul><h2 id='description-描述'><span>DESCRIPTION 描述</span></h2><p><span>Containers are a lightweight alternative to fully virtualized machines (VMs). They use the kernel of the host system that they run on, instead of emulating a full operating system (OS). This means that containers can access resources on the host system directly.</span>
<span>容器是完全虚拟化计算机 （VM） 的轻量级替代方案。它们使用运行它们的主机系统的内核，而不是模拟完整的操作系统 （OS）。这意味着容器可以直接访问主机系统上的资源。</span></p><p><span>The runtime costs for containers is low, usually negligible. However, there are some drawbacks that need be considered:</span>
<span>容器的运行成本很低，通常可以忽略不计。但是，也有一些缺点需要考虑：</span></p><ul><li><p><span>Only Linux distributions can be run in Proxmox Containers. It is not possible to run other operating systems like, for example, FreeBSD or Microsoft Windows inside a container.</span>
<span>只有 Linux 发行版可以在 Proxmox 容器中运行。不能在容器内运行其他操作系统，例如 FreeBSD 或 Microsoft Windows。</span></p></li><li><p><span>For security reasons, access to host resources needs to be restricted. Therefore, containers run in their own separate namespaces. Additionally some syscalls (user space requests to the Linux kernel) are not allowed within containers.</span>
<span>出于安全原因，需要限制对主机资源的访问。因此，容器在其自己的独立命名空间中运行。此外，容器内不允许某些系统调用（对 Linux 内核的用户空间请求）。</span></p></li></ul><p><span>Proxmox VE uses </span><a href='https://linuxcontainers.org/lxc/introduction/'><span>Linux Containers (LXC)</span></a><span> as its underlying container technology. The “Proxmox Container Toolkit” (pct) simplifies the usage and management of LXC, by providing an interface that abstracts complex tasks.</span>
<span>Proxmox VE使用</span><a href='https://linuxcontainers.org/lxc/introduction/'><span>Linux容器（LXC）</span></a><span>作为其底层容器技术。“Proxmox Container Toolkit”（pct）通过提供抽象复杂任务的接口，简化了LXC的使用和管理。</span></p><p><span>Containers are tightly integrated with Proxmox VE. This means that they are aware of the cluster setup, and they can use the same network and storage resources as virtual machines. You can also use the Proxmox VE firewall, or manage containers using the HA framework.</span>
<span>容器与 Proxmox VE 紧密集成。这意味着他们了解群集设置，并且可以使用与虚拟机相同的网络和存储资源。您还可以使用Proxmox VE防火墙，或使用HA框架管理容器。</span></p><p><span>Our primary goal is to offer an environment that provides the benefits of using a VM, but without the additional overhead. This means that Proxmox Containers can be categorized as “System Containers”, rather than “Application Containers”.</span>
<span>我们的主要目标是提供一个环境，该环境既能提供使用 VM 的好处，又不会产生额外的开销。这意味着Proxmox容器可以归类为“系统容器”，而不是“应用程序容器”。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgpGlKjPEF%0A0TpT5pUDRXiVt99+Le03r+WzuytM1gO6pB/3+o0cbxvk8yOPMjW6i2iR2lxOjJDHSDMFogmGwzQ7%0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a5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>If you want to run application containers, for example, </span><em><span>Docker</span></em><span> images, it is recommended that you run them inside a Proxmox QEMU VM. This will give you all the advantages of application containerization, while also providing the benefits that VMs offer, such as strong isolation from the host and the ability to live-migrate, which otherwise isn’t possible with containers. 如果要运行应用程序容器，例如 </span><em><span>Docker</span></em><span> 镜像，建议在 Proxmox QEMU VM 内运行它们。这将为您提供应用程序容器化的所有优势，同时还提供 VM 提供的优势，例如与主机的强大隔离和实时迁移能力，而这在容器中是无法实现的。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h2 id='technology-overview-技术概述'><span>Technology Overview 技术概述</span></h2><ul><li><p><span>LXC (</span><a href='https://linuxcontainers.org/' target='_blank' class='url'>https://linuxcontainers.org/</a><span>)</span>
<span>LXC （</span><a href='https://linuxcontainers.org/' target='_blank' class='url'>https://linuxcontainers.org/</a><span>）</span></p></li><li><p><span>Integrated into Proxmox VE graphical web user interface (GUI)</span>
<span>集成到 Proxmox VE 图形 Web 用户界面 （GUI） 中</span></p></li><li><p><span>Easy to use command-line tool pct</span>
<span>易于使用的命令行工具 pct</span></p></li><li><p><span>Access via Proxmox VE REST API</span>
<span>通过 Proxmox VE REST API 访问</span></p></li><li><p><em><span>lxcfs</span></em><span> to provide containerized /proc file system</span>
<em><span>lxcfs</span></em><span> 提供容器化的 /proc 文件系统</span></p></li><li><p><span>Control groups (</span><em><span>cgroups</span></em><span>) for resource isolation and limitation</span>
<span>用于资源隔离和限制的控制组 （</span><em><span>cgroups</span></em><span>）</span></p></li><li><p><em><span>AppArmor</span></em><span> and </span><em><span>seccomp</span></em><span> to improve security</span>
<em><span>AppArmor</span></em><span> 和 </span><em><span>seccomp</span></em><span> 可提高安全性</span></p></li><li><p><span>Modern Linux kernels 现代 Linux 内核</span></p></li><li><p><span>Image based deployment (</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_supported_distributions'><span>templates</span></a><span>)</span>
<span>基于图像的部署（</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_supported_distributions'><span>模板</span></a><span>）</span></p></li><li><p><span>Uses Proxmox VE </span><a href='https://pve.proxmox.com/pve-docs/pvesm.1.html#chapter_storage'><span>storage library</span></a>
<span>使用 Proxmox VE </span><a href='https://pve.proxmox.com/pve-docs/pvesm.1.html#chapter_storage'><span>存储库</span></a></p></li><li><p><span>Container setup from host (network, DNS, storage, etc.)</span>
<span>从主机（网络、DNS、存储等）设置容器</span></p></li></ul><h2 id='supported-distributions-支持的发行版'><span>Supported Distributions 支持的发行版</span></h2><p><span>List of officially supported distributions can be found below.</span>
<span>官方支持的发行版列表可以在下面找到。</span></p><p><span>Templates for the following distributions are available through our repositories. You can use </span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_container_images'><span>pveam</span></a><span> tool or the Graphical User Interface to download them.</span>
<span>以下分发的模板可通过我们的存储库获得。您可以使用</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_container_images'><span>pveam</span></a><span>工具或图形用户界面来下载它们。</span></p><h3 id='alpine-linux-alpine-linux的'><span>Alpine Linux Alpine Linux的 </span></h3><p><span>Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.</span>
<span>Alpine Linux 是一个面向安全的轻量级 Linux 发行版，基于 musl libc 和 busybox。</span></p><p><span>— </span><a href='https://alpinelinux.org/'><span>https://alpinelinux.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://alpinelinux.org/releases/' target='_blank' class='url'>https://alpinelinux.org/releases/</a></p><h3 id='arch-linux'><span>Arch Linux </span></h3><p><span>Arch Linux, a lightweight and flexible Linux® distribution that tries to Keep It Simple.</span>
<span>Arch Linux，一个轻量级且灵活的 Linux® 发行版，试图保持简单。</span></p><p><span>— </span><a href='https://archlinux.org/' target='_blank' class='url'>https://archlinux.org/</a></p><p><span>Arch Linux is using a rolling-release model, see its wiki for more details:</span>
<span>Arch Linux 使用的是滚动发布模型，有关更多详细信息，请参阅其 wiki：</span></p><p><a href='https://wiki.archlinux.org/title/Arch_Linux' target='_blank' class='url'>https://wiki.archlinux.org/title/Arch_Linux</a></p><h3 id='centos-almalinux-rocky-linux-centosalmalinuxrocky-linux'><span>CentOS, Almalinux, Rocky Linux CentOS、Almalinux、Rocky Linux </span></h3><h4 id='centos--centos-stream-centos--centos-流'><span>CentOS / CentOS Stream CentOS / CentOS 流</span></h4><p><span>The CentOS Linux distribution is a stable, predictable, manageable and reproducible platform derived from the sources of Red Hat Enterprise Linux (RHEL)</span>
<span>CentOS Linux 发行版是一个稳定、可预测、可管理且可重现的平台，源自 Red Hat Enterprise Linux （RHEL） 的源代码</span></p><p><span>— </span><a href='https://centos.org/'><span>https://centos.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://en.wikipedia.org/wiki/CentOS#End-of-support_schedule' target='_blank' class='url'>https://en.wikipedia.org/wiki/CentOS#End-of-support_schedule</a></p><h4 id='almalinux-阿尔玛林'><span>Almalinux 阿尔玛林</span></h4><p><span>An Open Source, community owned and governed, forever-free enterprise Linux distribution, focused on long-term stability, providing a robust production-grade platform. AlmaLinux OS is 1:1 binary compatible with RHEL® and pre-Stream CentOS.</span>
<span>一个开源的、社区拥有和管理的、永远免费的企业 Linux 发行版，专注于长期稳定性，提供强大的生产级平台。AlmaLinux OS 是 1：1 二进制兼容 RHEL® 和 pre-Stream CentOS。</span></p><p><span>— </span><a href='https://almalinux.org/'><span>https://almalinux.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://en.wikipedia.org/wiki/AlmaLinux#Releases' target='_blank' class='url'>https://en.wikipedia.org/wiki/AlmaLinux#Releases</a></p><h4 id='rocky-linux-洛基-linux'><span>Rocky Linux 洛基 Linux</span></h4><p><span>Rocky Linux is a community enterprise operating system designed to be 100% bug-for-bug compatible with America’s top enterprise Linux distribution now that its downstream partner has shifted direction.</span>
<span>Rocky Linux 是一个社区企业操作系统，旨在与美国顶级企业 Linux 发行版 100% 兼容，因为它的下游合作伙伴已经改变了方向。</span></p><p><span>— </span><a href='https://rockylinux.org/'><span>https://rockylinux.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://en.wikipedia.org/wiki/Rocky_Linux#Releases' target='_blank' class='url'>https://en.wikipedia.org/wiki/Rocky_Linux#Releases</a></p><h3 id='debian-debian-的'><span>Debian Debian 的 </span></h3><p><span>Debian is a free operating system, developed and maintained by the Debian project. A free Linux distribution with thousands of applications to meet our users&#39; needs.</span>
<span>Debian 是一个自由的操作系统，由 Debian 项目开发和维护。一个免费的 Linux 发行版，包含数千个应用程序，以满足我们用户的需求。</span></p><p><span>— </span><a href='https://www.debian.org/intro/index#software' target='_blank' class='url'>https://www.debian.org/intro/index#software</a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://www.debian.org/releases/stable/releasenotes' target='_blank' class='url'>https://www.debian.org/releases/stable/releasenotes</a></p><h3 id='devuan-德文'><span>Devuan 德文 </span></h3><p><span>Devuan GNU+Linux is a fork of Debian without systemd that allows users to reclaim control over their system by avoiding unnecessary entanglements and ensuring Init Freedom.</span>
<span>Devuan GNU+Linux 是 Debian 的一个分支，没有 systemd，它允许用户通过避免不必要的纠缠和确保 Init 自由来收回对系统的控制权。</span></p><p><span>— </span><a href='https://www.devuan.org/'><span>https://www.devuan.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://www.devuan.org/os/releases' target='_blank' class='url'>https://www.devuan.org/os/releases</a></p><h3 id='fedora-fedora-软呢帽'><span>Fedora Fedora 软呢帽 </span></h3><p><span>Fedora creates an innovative, free, and open source platform for hardware, clouds, and containers that enables software developers and community members to build tailored solutions for their users.</span>
<span>Fedora 为硬件、云和容器创建了一个创新、免费和开源的平台，使软件开发人员和社区成员能够为他们的用户构建定制的解决方案。</span></p><p><span>— </span><a href='https://getfedora.org/'><span>https://getfedora.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://fedoraproject.org/wiki/Releases' target='_blank' class='url'>https://fedoraproject.org/wiki/Releases</a></p><h3 id='gentoo-巴布亚'><span>Gentoo 巴布亚 </span></h3><p><span>a highly flexible, source-based Linux distribution.</span>
<span>一个高度灵活、基于源代码的 Linux 发行版。</span></p><p><span>— </span><a href='https://www.gentoo.org/'><span>https://www.gentoo.org</span></a></p><p><span>Gentoo is using a rolling-release model.</span>
<span>Gentoo正在使用滚动发布模型。</span></p><h3 id='opensuse-opensuse-操作系统'><span>OpenSUSE OpenSUSE 操作系统 </span></h3><p><span>The makers&#39; choice for sysadmins, developers and desktop users.</span>
<span>系统管理员、开发人员和桌面用户的制造商之选。</span></p><p><span>— </span><a href='https://www.opensuse.org/'><span>https://www.opensuse.org</span></a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://get.opensuse.org/leap/' target='_blank' class='url'>https://get.opensuse.org/leap/</a></p><h3 id='ubuntu-ubuntu的'><span>Ubuntu Ubuntu的 </span></h3><p><span>Ubuntu is the modern, open source operating system on Linux for the enterprise server, desktop, cloud, and IoT.</span>
<span>Ubuntu 是 Linux 上的现代开源操作系统，适用于企业服务器、桌面、云和物联网。</span></p><p><span>— </span><a href='https://ubuntu.com/' target='_blank' class='url'>https://ubuntu.com/</a></p><p><span>For currently supported releases see:</span>
<span>有关当前支持的版本，请参阅：</span></p><p><a href='https://wiki.ubuntu.com/Releases' target='_blank' class='url'>https://wiki.ubuntu.com/Releases</a></p><h2 id='container-images-容器镜像'><span>Container Images 容器镜像</span></h2><p><span>Container images, sometimes also referred to as “templates” or “appliances”, are tar archives which contain everything to run a container.</span>
<span>容器镜像，有时也称为“模板”或“设备”，是 tar 存档，其中包含运行容器的所有内容。</span></p><p><span>Proxmox VE itself provides a variety of basic templates for the </span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_supported_distributions'><span>most common Linux distributions</span></a><span>. They can be downloaded using the GUI or the pveam (short for Proxmox VE Appliance Manager) command-line utility. Additionally, </span><a href='https://www.turnkeylinux.org/'><span>TurnKey Linux</span></a><span> container templates are also available to download.</span>
<span>Proxmox </span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_supported_distributions'><span>VE本身为最常见的Linux发行版</span></a><span>提供了各种基本模板。可以使用 GUI 或 pveam（Proxmox VE Appliance Manager 的缩写）命令行实用程序下载它们。此外，</span><a href='https://www.turnkeylinux.org/'><span>TurnKey Linux</span></a><span> 容器模板也可供下载。</span></p><p><span>The list of available templates is updated daily through the </span><em><span>pve-daily-update</span></em><span> timer. You can also trigger an update manually by executing:</span>
<span>可用模板列表每天通过 </span><em><span>pve-daily-update</span></em><span> 计时器进行更新。您也可以通过执行以下命令来手动触发更新：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pveam update</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>To view the list of available images run:</span>
<span>要查看可用映像的列表，请运行：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pveam available</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>You can restrict this large list by specifying the section you are interested in, for example basic system images:</span>
<span>您可以通过指定您感兴趣的部分来限制此大列表，例如基本系统映像：</span></p><p><span>List available system images</span>
<span>列出可用的系统映像</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang="" style="break-inside: unset;"><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pveam available --section system</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  alpine-3.12-default_20200823_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  alpine-3.13-default_20210419_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  alpine-3.14-default_20210623_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  archlinux-base_20210420-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  centos-7-default_20190926_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  centos-8-default_20201210_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  debian-9.0-standard_9.7-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  debian-10-standard_10.7-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  devuan-3.0-standard_3.0_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  fedora-33-default_20201115_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  fedora-34-default_20210427_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  gentoo-current-default_20200310_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  opensuse-15.2-default_20200824_amd64.tar.xz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  ubuntu-18.04-standard_18.04.1-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  ubuntu-20.04-standard_20.04-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  ubuntu-20.10-standard_20.10-1_amd64.tar.gz</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">system &nbsp; &nbsp; &nbsp; &nbsp;  ubuntu-21.04-standard_21.04-1_amd64.tar.gz</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 494px;"></div><div class="CodeMirror-gutters" style="display: none; height: 494px;"></div></div></div></pre><p><span>Before you can use such a template, you need to download them into one of your storages. If you’re unsure to which one, you can simply use the local named storage for that purpose. For clustered installations, it is preferred to use a shared storage so that all nodes can access those images.</span>
<span>在您可以使用此类模板之前，您需要将它们下载到您的其中一个存储中。如果您不确定是哪一个，您可以简单地使用本地命名存储来实现此目的。对于群集安装，最好使用共享存储，以便所有节点都可以访问这些映像。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pveam download local debian-10.0-standard_10.0-1_amd64.tar.gz</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>You are now ready to create containers using that image, and you can list all downloaded images on storage local with:</span>
<span>现在，您已准备好使用该映像创建容器，并且可以使用以下命令在本地存储中列出所有下载的映像：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pveam list local</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">local:vztmpl/debian-10.0-standard_10.0-1_amd64.tar.gz  219.95MB</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAKZUlEQVRoge2aa3BU5RmAn3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4+zvbt2+ns7OS2+x6kanYdqjeA1xdAUb3IioIoSjg42JaJaejo%0AmTRaOoGeTiHJEvGxYd55rZP29nbWrl1LOBymqqqKyspKKioqyjK+bIBcCE3TSCaTxGIxenp62LVr%0AF11dXdTUL2BO/Xx8/goEUcSxbYSJ2EGS5IlzgnSC/r4PuXzmOEuXLmXlypXU19cTCoUIh8OEQqEr%0A7k5/7vOBdDpNMpkkkUiQSCTo7u7m6NGjnD59mv7+fqLRKIZhoCgKoVCI2tpampqaWLRoES0tLfh8%0APvx+P8FgkGAw+OWfD7gj94RG13U0TSOdTpNOp8lMbmQ0TcvbArrrK1mW8Xg8eL3e7BLB5/N9dSc0%0AuSP3jMwwjKy4G3AXwB0ugAsx5YzMndW//DOy3OFMjGwrxrKs7NX9LBfAneFFUcxec6rU5zqpvCqA%0AqTCT16/0nPgLA/i6xjf+Xw3+B2ll/uiqTaJTAAAAAElFTkSuQmCC" referrerpolicy="no-referrer" alt="Tip"></th><th><span>You can also use the Proxmox VE web interface GUI to download, list and delete container templates. 您还可以使用Proxmox VE网页界面GUI下载、列出和删除容器模板。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>pct uses them to create a new container, for example:</span>
<span>PCT使用它们来创建一个新的容器，例如：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct create 999 local:vztmpl/debian-10.0-standard_10.0-1_amd64.tar.gz</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><p><span>The above command shows you the full Proxmox VE volume identifiers. They include the storage name, and most other Proxmox VE commands can use them. For example you can delete that image later with:</span>
<span>上面的命令显示完整的Proxmox VE卷标识符。它们包括存储名称，大多数其他 Proxmox VE 命令都可以使用它们。例如，您可以稍后通过以下方式删除该图像：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pveam remove local:vztmpl/debian-10.0-standard_10.0-1_amd64.tar.gz</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><h2 id='container-settings-容器设置'><span>Container Settings 容器设置</span></h2><h3 id='general-settings-常规设置'><span>General Settings 常规设置 </span></h3><p><a href='https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-general.png'><img src="https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-general.png" referrerpolicy="no-referrer" alt="screenshot/gui-create-ct-general.png"></a></p><p><span>General settings of a container include</span>
<span>容器的常规设置包括</span></p><ul><li><p><span>the </span><strong><span>Node</span></strong><span> : the physical server on which the container will run</span>
<strong><span>节点</span></strong><span> ：容器将在其上运行的物理服务器</span></p></li><li><p><span>the </span><strong><span>CT ID</span></strong><span>: a unique number in this Proxmox VE installation used to identify your container</span>
<strong><span>CT ID</span></strong><span>：此 Proxmox VE 安装中的唯一编号，用于识别您的容器</span></p></li><li><p><strong><span>Hostname</span></strong><span>: the hostname of the container</span>
<strong><span>Hostname</span></strong><span>：容器的主机名</span></p></li><li><p><strong><span>Resource Pool</span></strong><span>: a logical group of containers and VMs</span>
<strong><span>资源池</span></strong><span>：容器和虚拟机的逻辑组</span></p></li><li><p><strong><span>Password</span></strong><span>: the root password of the container</span>
<strong><span>Password</span></strong><span>：容器的root密码</span></p></li><li><p><strong><span>SSH Public Key</span></strong><span>: a public key for connecting to the root account over SSH</span>
<strong><span>SSH公钥</span></strong><span>：通过SSH连接到主账号的公钥</span></p></li><li><p><strong><span>Unprivileged container</span></strong><span>: this option allows to choose at creation time if you want to create a privileged or unprivileged container.</span>
<strong><span>非特权容器</span></strong><span>：此选项允许在创建时选择是否要创建特权容器或非特权容器。</span></p></li></ul><h4 id='unprivileged-containers-非特权容器'><span>Unprivileged Containers 非特权容器</span></h4><p><span>Unprivileged containers use a new kernel feature called user namespaces. The root UID 0 inside the container is mapped to an unprivileged user outside the container. This means that most security issues (container escape, resource abuse, etc.) in these containers will affect a random unprivileged user, and would be a generic kernel security bug rather than an LXC issue. The LXC team thinks unprivileged containers are safe by design.</span>
<span>非特权容器使用称为用户命名空间的新内核功能。容器内的根 UID 0 映射到容器外部的非特权用户。这意味着这些容器中的大多数安全问题（容器逃逸、资源滥用等）将影响随机的非特权用户，并且是通用的内核安全错误，而不是 LXC 问题。LXC 团队认为非特权容器在设计上是安全的。</span></p><p><span>This is the default option when creating a new container.</span>
<span>这是创建新容器时的默认选项。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVg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33XY7IAXXm6Ou0YhIMamaaUOl5WRrzg00viuKWWxpQUOH%0ANAZFQRpD48Xlkig0MTHBB95zG+VSylz1KCbWyDOh2XyK+56IqjWMKigkUnzWnPPFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>If the container uses systemd as an init system, please be aware the systemd version running inside the container should be equal to or greater than 220. 如果容器使用 systemd 作为 init 系统，请注意容器内运行的 systemd 版本应等于或大于 220。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h4 id='privileged-containers-特权容器'><span>Privileged Containers 特权容器</span></h4><p><span>Security in containers is achieved by using mandatory access control </span><em><span>AppArmor</span></em><span> restrictions, </span><em><span>seccomp</span></em><span> filters and Linux kernel namespaces. The LXC team considers this kind of container as unsafe, and they will not consider new container escape exploits to be security issues worthy of a CVE and quick fix. That’s why privileged containers should only be used in trusted environments.</span>
<span>容器中的安全性是通过使用强制访问控制 </span><em><span>AppArmor</span></em><span> 限制、</span><em><span>seccomp</span></em><span> 过滤器和 Linux 内核命名空间来实现的。LXC 团队认为这种容器是不安全的，他们不会认为新的容器逃逸漏洞是值得 CVE 和快速修复的安全问题。这就是为什么特权容器只应在受信任的环境中使用。</span></p><h3 id='cpu-中央处理器'><span>CPU 中央处理器 </span></h3><p><a href='https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-cpu.png'><img src="https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-cpu.png" referrerpolicy="no-referrer" alt="screenshot/gui-create-ct-cpu.png"></a></p><p><span>You can restrict the number of visible CPUs inside the container using the cores option. This is implemented using the Linux </span><em><span>cpuset</span></em><span> cgroup (</span><strong><span>c</span></strong><span>ontrol </span><strong><span>group</span></strong><span>). A special task inside pvestatd tries to distribute running containers among available CPUs periodically. To view the assigned CPUs run the following command:</span>
<span>您可以使用 cores 选项限制容器内可见 CPU 的数量。这是使用 Linux </span><em><span>cpuset</span></em><span> cgroup（</span><strong><span>c</span></strong><span>ontrol </span><strong><span>组</span></strong><span>）实现的。pvestatd 内部的一个特殊任务尝试定期在可用的 CPU 之间分配正在运行的容器。要查看分配的 CPU，请运行以下命令：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct cpusets</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ---------------------</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> 102: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  6 7</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> 105: &nbsp; &nbsp;  2 3 4 5</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> 108:  0 1</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"> ---------------------</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 156px;"></div><div class="CodeMirror-gutters" style="display: none; height: 156px;"></div></div></div></pre><p><span>Containers use the host kernel directly. All tasks inside a container are handled by the host CPU scheduler. Proxmox VE uses the Linux </span><em><span>CFS</span></em><span> (</span><strong><span>C</span></strong><span>ompletely </span><strong><span>F</span></strong><span>air </span><strong><span>S</span></strong><span>cheduler) scheduler by default, which has additional bandwidth control options.</span>
<span>容器直接使用主机内核。容器内的所有任务都由主机 CPU 调度器处理。Proxmox VE 默认使用 Linux </span><em><span>CFS</span></em><span> （</span><strong><span>C</span></strong><span>ompletely </span><strong><span>F</span></strong><span>air </span><strong><span>S</span></strong><span>cheduler） 调度器，该调度器具有额外的带宽控制选项。</span></p><figure class='table-figure'><table><thead><tr><th><span>cpulimit: CPU限制： </span></th><th><span>You can use this option to further limit assigned CPU time. Please note that this is a floating point number, so it is perfectly valid to assign two cores to a container, but restrict overall CPU consumption to half a core. 您可以使用此选项进一步限制分配的 CPU 时间。请注意，这是一个浮点数，因此将两个内核分配给容器是完全有效的，但将总 CPU 消耗限制为半个内核。</span><code>cores: 2 cpulimit: 0.5</code></th></tr></thead><tbody><tr><td><span>cpuunits: CPU单位： </span></td><td><span>This is a relative weight passed to the kernel scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running containers. The default is 100 (or 1024 if the host uses legacy cgroup v1). You can use this setting to prioritize some containers. 这是传递给内核调度器的相对权重。数字越大，此容器获得的 CPU 时间就越多。数量是相对于所有其他正在运行的容器的重量而言的。默认值为 100（如果主机使用旧版 cgroup v1，则为 1024）。您可以使用此设置来确定某些容器的优先级。</span></td></tr></tbody></table></figure><h3 id='memory-记忆'><span>Memory 记忆 </span></h3><p><a href='https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-memory.png'><img src="https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-memory.png" referrerpolicy="no-referrer" alt="screenshot/gui-create-ct-memory.png"></a></p><p><span>Container memory is controlled using the cgroup memory controller.</span>
<span>容器内存使用 cgroup 内存控制器进行控制。</span></p><figure class='table-figure'><table><thead><tr><th><span>memory: 内存： </span></th><th><span>Limit overall memory usage. This corresponds to the memory.limit_in_bytes cgroup setting. 限制总体内存使用量。这对应于 memory.limit_in_bytes cgroup 设置。</span></th></tr></thead><tbody><tr><td><span>swap: 掉期： </span></td><td><span>Allows the container to use additional swap memory from the host swap space. This corresponds to the memory.memsw.limit_in_bytes cgroup setting, which is set to the sum of both value (memory + swap). 允许容器使用主机交换空间中的额外交换内存。这对应于 memory.memsw.limit_in_bytes cgroup 设置，该设置设置为两个值的总和（内存 + 交换）。</span></td></tr></tbody></table></figure><h3 id='mount-points-挂载点'><span>Mount Points 挂载点 </span></h3><p><a href='https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-root-disk.png'><img src="https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-root-disk.png" referrerpolicy="no-referrer" alt="screenshot/gui-create-ct-root-disk.png"></a></p><p><span>The root mount point is configured with the rootfs property. You can configure up to 256 additional mount points. The corresponding options are called mp0 to mp255. They can contain the following settings:</span>
<span>root 挂载点使用 rootfs 属性进行配置。您最多可以配置 256 个额外的挂载点。相应的选项称为 mp0 到 mp255。它们可以包含以下设置：</span></p><ul><li><p><span>rootfs: [volume=]</span><volume><span> [,acl=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] rootfs： [volume=]</span><volume><span> [，acl=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container root. See below for a detailed description of all options. 将卷用作容器根目录。有关所有选项的详细说明，请参阅下文。</span></p></li><li><p><span>mp[n]: [volume=]</span><volume><span> ,mp=</span><Path><span> [,acl=&lt;1|0&gt;] [,backup=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] mp[n]： [volume=]</span><volume><span> ，mp=</span><Path><span> [，acl=&lt;1|0&gt;] [，backup=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. 使用卷作为容器挂载点。使用特殊语法 STORAGE_ID：SIZE_IN_GiB 分配新卷。acl=</span><boolean><span>Explicitly enable or disable ACL support. 显式启用或禁用 ACL 支持。backup=</span><boolean><span> 备份=</span><boolean><span>Whether to include the mount point in backups (only used for volume mount points). 是否在备份中包含装入点（仅用于卷装入点）。mountoptions=&lt;opt[;opt...]&gt;Extra mount options for rootfs/mps. rootfs/mps 的额外挂载选项。mp=</span><Path><span>Path to the mount point as seen from inside the container. 从容器内部看到的挂载点的路径。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FC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K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>Must not contain any symlinks for security reasons. 出于安全原因，不得包含任何符号链接。quota=</span><boolean><span> 配额=</span><boolean><span>Enable user quotas inside the container (not supported with zfs subvolumes) 在容器内启用用户配额（zfs 子卷不支持）replicate=</span><boolean><span> (</span><em><span>default =</span></em><span> 1) replicate=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）Will include this volume to a storage replica job. 将此卷包含在存储副本作业中。ro=</span><boolean><span>Read-only mount point 只读挂载点shared=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) shared=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Mark this non-volume mount point as available on all nodes. 将此非卷挂载点标记为在所有节点上可用。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAA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0H6+vrQNC2pFL8ZUVWVrKws8vPzycnJQVXVjH/s%0A/F/lgJiyQFHragAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Warning"><span>This option does not share the mount point automatically, it assumes it is shared already! 此选项不会自动共享挂载点，它假定它已经共享！size=</span><DiskSize><span> 大小=</span><iskSize><span>Volume size (read only value). 卷大小（只读值）。volume=</span><volume><span> 体积=&lt;体积&gt;Volume, device or directory to mount into the container. 要挂载到容器中的卷、设备或目录。</span></p></li></ul><p><span>Currently there are three types of mount points: storage backed mount points, bind mounts, and device mounts.</span>
<span>目前有三种类型的挂载点：存储支持的挂载点、绑定挂载和设备挂载。</span></p><p><span>Typical container rootfs configuration</span>
<span>典型的容器 rootfs 配置</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rootfs: thin1:base-100-disk-1,size=8G</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><h4 id='storage-backed-mount-points-存储支持的装载点'><span>Storage Backed Mount Points 存储支持的装载点</span></h4><p><span>Storage backed mount points are managed by the Proxmox VE storage subsystem and come in three different flavors:</span>
<span>存储支持的挂载点由 Proxmox VE 存储子系统管理，有三种不同的风格：</span></p><ul><li><p><span>Image based: these are raw images containing a single ext4 formatted file system.</span>
<span>基于图像：这些是包含单个 ext4 格式文件系统的原始图像。</span></p></li><li><p><span>ZFS subvolumes: these are technically bind mounts, but with managed storage, and thus allow resizing and snapshotting.</span>
<span>ZFS 子卷：从技术上讲，这些子卷是绑定装载，但具有托管存储，因此允许调整大小和创建快照。</span></p></li><li><p><span>Directories: passing size=0 triggers a special case where instead of a raw image a directory is created.</span>
<span>目录：传递 size=0 会触发一种特殊情况，即创建的不是原始图像，而是目录。</span></p></li></ul><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4q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GEAbN261bZt+zW33XY7IAXXm6Ou0YhIMamaaUOl5WRrzg00viuKWWxpQUOH%0ANAZFQRpD48Xlkig0MTHBB95zG+VSylz1KCbWyDOh2XyK+56IqjWMKigkUnzWnPPFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>The special option syntax STORAGE_ID:SIZE_IN_GB for storage backed mount point volumes will automatically allocate a volume of the specified size on the specified storage. For example, calling 存储支持的挂载点卷的特殊选项语法 STORAGE_ID：SIZE_IN_GB 将自动在指定存储上分配指定大小的卷。例如，调用</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">pct set 100 -mp0 thin1:10,mp=/path/in/container</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>will allocate a 10GB volume on the storage thin1 and replace the volume ID place holder 10 with the allocated volume ID, and setup the moutpoint in the container at /path/in/container</span>
<span>将在存储 thin1 上分配一个 10GB 的卷，并将卷 ID 占位符 10 替换为分配的卷 ID，并在容器的 /path/in/container 处设置存储点</span></p><h4 id='bind-mount-points-绑定挂载点'><span>Bind Mount Points 绑定挂载点</span></h4><p><span>Bind mounts allow you to access arbitrary directories from your Proxmox VE host inside a container. Some potential use cases are:</span>
<span>绑定挂载允许您从容器内的Proxmox VE主机访问任意目录。一些可能的用例包括：</span></p><ul><li><p><span>Accessing your home directory in the guest</span>
<span>在客户机中访问主目录</span></p></li><li><p><span>Accessing an USB device directory in the guest</span>
<span>访问客户机中的 USB 设备目录</span></p></li><li><p><span>Accessing an NFS mount from the host in the guest</span>
<span>从客户机中的主机访问 NFS 挂载</span></p></li></ul><p><span>Bind mounts are considered to not be managed by the storage subsystem, so you cannot make snapshots or deal with quotas from inside the container. With unprivileged containers you might run into permission problems caused by the user mapping and cannot use ACLs.</span>
<span>绑定挂载被视为不受存储子系统管理，因此您无法从容器内部创建快照或处理配额。对于非特权容器，您可能会遇到由用户映射引起的权限问题，并且无法使用 ACL。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsU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AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>The contents of bind mount points are not backed up when using vzdump. 使用 vzdump 时，不会备份绑定挂载点的内容。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMVUlEQVRogdWZeXDVVZbHP7/f27JB%0AwtJIiCERRFlbx5FuHRrRBgtBsRIwCCOrFmGmiDBjYVNlQlgiQjU6IjI4xLJxGf5QGp0Cbaftsu3R%0Ahu6aYXqgLZoWEsjyyDP7S972e7/l3vnj5cW3Ji9M/zOn6lRS997fvd/vueece+59ipSS/89iv5mP%0AZEQQQsS23RQARVEAUFUVRVFQog0ZyogJSClld3c327Ztw7IsLMuKto90KgBsNhtVVVXMn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3+2VTUxM7d+7k5MmTKXNuS0sL555+mtYvv0zqE0A7kavhqFL4oAlCCWOygGIi%0AqTiHyMnuTBgz/bHHKDt9GillnN8D+P1+ysrKWLJkCdOmTWPWrFmUlpZGCAghpN/vp7m5mZqaGl5/%0A/XUKCwtJFLfbzX+sX8+Nr75K6rtZiXr49KVLKf/4Y4QQ6LqeBP6RRx6hvLycadOmMXPmTEpKSsjN%0Azf3uZS6WRHV1NadOnUpaTEpJa2sr5zZupOkmSaQqk2csWcLyTz4BQNO0uL7GxkbWr1+fErzNZlMG%0Aw1lVVSUvL4+SkhL27dvH8uXL8Xg8ceABiouLue+ttyieN2+IK2Z6TRx/5+LFacE3NDRQWVmZFjwk%0AnAOxJF566SW2bNnChQsXkmKipKSEB959l9vmzcvo1pZOpz/8ME98+mla8Bs2bGDZsmVpwUOa5/VE%0Ad0oXE319fXxWXs43Z88m9Q0n03/0I1YPJIRE8OfOnWPHjh2UlZUNCT4tgUQSO3fupKqqigceeGCw%0AP/a7VM8emUg0VcbK+fPn2bp1KytWrBgW/JAEEknU1NTw7LPPMn/+/GFBZQI8lZw/f57nnnuO5cuX%0AM2XKlGHBD0sgkURdXR2PP/44FRUVNwV+qP7Tp09z8ODBjNxmRAQSSRw4cIBly5axdOnSvwh4RVH4%0A4osv2L9/P2VlZRlbfkQEEkls376djo4OQqHE83bk4nK5EEKwZs0aSktLRwR+RATgOxItLS1cu3aN%0Avr6+wTfK/4tEfzeeMmUKkydPzhg8jJAAREgEg0H6+vrQNC2pFL8ZUVWVrKws8vPzycnJQVXVjH/s%0A/F/lgJiyQFHragAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Warning"></th><th><span>For security reasons, bind mounts should only be established using source directories especially reserved for this purpose, e.g., a directory hierarchy under /mnt/bindmounts. Never bind mount system directories like /, /var or /etc into a container - this poses a great security risk. 出于安全原因，绑定挂载只能使用专门为此目的保留的源目录来建立，例如，/mnt/bindmounts 下的目录层次结构。永远不要将挂载系统目录（如 /、/var 或 /etc）绑定到容器中 - 这会带来很大的安全风险。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgpGlKjPEF%0A0TpT5pUDRXiVt99+Le03r+WzuytM1gO6pB/3+o0cbxvk8yOPMjW6i2iR2lxOjJDHSDMFogmGwzQ7%0ArRJAUpAENAGXIZq2AFzQpvkACCEQcahP+cRH3sKHn9zHXU+MM7rtGeD33NDXzaZynZU9gcezpUw9%0AX6OzIyOak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8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>The bind mount source path must not contain any symlinks. 绑定挂载源路径不得包含任何符号链接。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>For example, to make the directory /mnt/bindmounts/shared accessible in the container with ID 100 under the path /shared, add a configuration line such as:</span>
<span>例如，要使目录 /mnt/bindmounts/shared 在路径 /shared 下 ID 为 100 的容器中可访问，请添加如下配置行：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">mp0: /mnt/bindmounts/shared,mp=/shared</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>into /etc/pve/lxc/100.conf.</span>
<span>放入 /etc/pve/lxc/100.conf 中。</span></p><p><span>Or alternatively use the pct tool:</span>
<span>或者使用pct工具：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>to achieve the same result.</span>
<span>以达到相同的结果。</span></p><h4 id='device-mount-points-设备挂载点'><span>Device Mount Points 设备挂载点</span></h4><p><span>Device mount points allow to mount block devices of the host directly into the container. Similar to bind mounts, device mounts are not managed by Proxmox VE’s storage subsystem, but the quota and acl options will be honored.</span>
<span>设备挂载点允许将主机的块设备直接挂载到容器中。与绑定挂载类似，设备挂载不受 Proxmox VE 的存储子系统管理，但将遵守配额和 acl 选项。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj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/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>Device mount points should only be used under special circumstances. In most cases a storage backed mount point offers the same performance and a lot more features. 设备安装点只能在特殊情况下使用。在大多数情况下，存储支持的挂载点提供相同的性能和更多功能。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnS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rerpolicy="no-referrer" alt="Note"></th><th><span>The contents of device mount points are not backed up when using vzdump. 使用 vzdump 时，不会备份设备挂载点的内容。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h3 id='network-网络'><span>Network 网络 </span></h3><p><a href='https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-network.png'><img src="https://pve.proxmox.com/pve-docs/images/screenshot/gui-create-ct-network.png" referrerpolicy="no-referrer" alt="screenshot/gui-create-ct-network.png"></a></p><p><span>You can configure up to 10 network interfaces for a single container. The corresponding options are called net0 to net9, and they can contain the following setting:</span>
<span>您可以为单个容器配置最多 10 个网络接口。相应的选项称为 net0 到 net9，它们可以包含以下设置：</span></p><ul><li><p><span>net[n]: name=</span><string><span> [,bridge=</span><bridge><span>] [,firewall=&lt;1|0&gt;] [,gw=</span><GatewayIPv4><span>] [,gw6=</span><GatewayIPv6><span>] [,hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span>] [,ip=&lt;(IPv4/CIDR|dhcp|manual)&gt;] [,ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt;] [,link_down=&lt;1|0&gt;] [,mtu=</span><integer><span>] [,rate=</span><mbps><span>] [,tag=</span><integer><span>] [,trunks=&lt;vlanid[;vlanid...]&gt;] [,type=</span><veth><span>] net[n]： name=</span><string><span> [，bridge=</span><bridge><span>] [，firewall=&lt;1|0&gt;] [，gw=</span><GatewayIPv4><span>] [，gw6=</span><GatewayIPv6><span>] [，hwaddr=&lt;XX：XX：XX：XX：XX：XX&gt;] [，ip=&lt;（IPv4/CIDR|dhcp|manual）&gt;] [，ip6=&lt;（IPv6/CIDR|auto|dhcp|manual）&gt;] [，link_down=&lt;1|0&gt;] [，mtu=</span><integer><span>] [，rate=</span><mbps><span>] [，tag=</span><integer><span>] [，trunks=&lt;vlanid[;弗拉尼德...]&gt;] [，类型=</span><veth><span>]</span></p><p><span>Specifies network interfaces for the container. 指定容器的网络接口。bridge=</span><bridge><span> 桥=&lt;桥&gt;Bridge to attach the network device to. 将网络设备连接到的网桥。firewall=</span><boolean><span> 防火墙=</span><boolean><span>Controls whether this interface’s firewall rules should be used. 控制是否应使用此接口的防火墙规则。gw=</span><GatewayIPv4><span>Default gateway for IPv4 traffic. IPv4 流量的默认网关。gw6=</span><GatewayIPv6><span>Default gateway for IPv6 traffic. IPv6 流量的默认网关。hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span> hwaddr=&lt;XX：XX：XX：XX：XX&gt;A common MAC address with the I/G (Individual/Group) bit not set. 未设置 I/G（个人/组）位的公共 MAC 地址。ip=&lt;(IPv4/CIDR|dhcp|manual)&gt; ip=&lt;（IPv4/CIDR|dhcp|手动）&gt;IPv4 address in CIDR format. CIDR 格式的 IPv4 地址。ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt; ip6=&lt;（IPv6/CIDR|自动|dhcp|手动）&gt;IPv6 address in CIDR format. CIDR 格式的 IPv6 地址。link_down=</span><boolean><span>Whether this interface should be disconnected (like pulling the plug). 是否应断开此接口（如拔插头）。mtu=</span><integer><span> (64 - 65535) mtu=</span><integer><span> （64 - 65535）Maximum transfer unit of the interface. (lxc.network.mtu) 接口的最大传输单位。（lxc.network.mtu）name=</span><string><span> 名称=</span><string><span>Name of the network device as seen from inside the container. (lxc.network.name) 从容器内部看到的网络设备的名称。（lxc.network.name）rate=</span><mbps><span> 率=</span><mbps><span>Apply rate limiting to the interface 对接口应用速率限制tag=</span><integer><span> (1 - 4094) 标签=</span><integer><span> （1 - 4094）VLAN tag for this interface. 此接口的 VLAN 标记。trunks=&lt;vlanid[;vlanid...]&gt; trunks=&lt;vlanid[;弗拉尼德...]&gt;VLAN ids to pass through the interface 要通过接口的 VLAN IDtype=</span><veth><span> 类型=</span><veth><span>Network interface type. 网络接口类型。</span></p></li></ul><h3 id='automatic-start-and-shutdown-of-containers-容器的自动启动和关闭'><span>Automatic Start and Shutdown of Containers 容器的自动启动和关闭 </span></h3><p><span>To automatically start a container when the host system boots, select the option </span><em><span>Start at boot</span></em><span> in the </span><em><span>Options</span></em><span> panel of the container in the web interface or run the following command:</span>
<span>要在主机系统启动时自动启动容器，请在 Web 界面中容器的</span><em><span>“选项</span></em><span>”面板中选择“</span><em><span>启动时启动</span></em><span>”选项，或运行以下命令：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct set CTID -onboot 1</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><a href='https://pve.proxmox.com/pve-docs/images/screenshot/gui-qemu-edit-start-order.png'><img src="https://pve.proxmox.com/pve-docs/images/screenshot/gui-qemu-edit-start-order.png" referrerpolicy="no-referrer" alt="screenshot/gui-qemu-edit-start-order.png"></a></p><p><span>Start and Shutdown Order 启动和关闭顺序</span></p><p><span>If you want to fine tune the boot order of your containers, you can use the following parameters:</span>
<span>如果要微调容器的启动顺序，可以使用以下参数：</span></p><ul><li><p><strong><span>Start/Shutdown order</span></strong><span>: Defines the start order priority. For example, set it to 1 if you want the CT to be the first to be started. (We use the reverse startup order for shutdown, so a container with a start order of 1 would be the last to be shut down)</span>
<strong><span>启动/关闭顺序</span></strong><span>：定义启动顺序优先级。例如，如果您希望 CT 是第一个启动的 CT，请将其设置为 1。（我们使用反向启动顺序进行关闭，因此启动顺序为 1 的容器将是最后一个被关闭的容器）</span></p></li><li><p><strong><span>Startup delay</span></strong><span>: Defines the interval between this container start and subsequent containers starts. For example, set it to 240 if you want to wait 240 seconds before starting other containers.</span>
<strong><span>启动延迟</span></strong><span>：定义此容器启动与后续容器启动之间的间隔。例如，如果要等待 240 秒，然后再启动其他容器，请将其设置为 240。</span></p></li><li><p><strong><span>Shutdown timeout</span></strong><span>: Defines the duration in seconds Proxmox VE should wait for the container to be offline after issuing a shutdown command. By default this value is set to 60, which means that Proxmox VE will issue a shutdown request, wait 60s for the machine to be offline, and if after 60s the machine is still online will notify that the shutdown action failed.</span>
<strong><span>关机超时</span></strong><span>：定义 Proxmox VE 在发出关机命令后应等待容器脱机的持续时间（以秒为单位）。默认情况下，此值设置为 60，这意味着 Proxmox VE 将发出关机请求，等待 60 秒让机器离线，如果 60 秒后机器仍然在线，将通知关机操作失败。</span></p></li></ul><p><span>Please note that containers without a Start/Shutdown order parameter will always start after those where the parameter is set, and this parameter only makes sense between the machines running locally on a host, and not cluster-wide.</span>
<span>请注意，没有启动/关闭顺序参数的容器将始终在设置了该参数的容器之后启动，并且此参数仅在主机上本地运行的计算机之间有意义，而不是集群范围。</span></p><p><span>If you require a delay between the host boot and the booting of the first container, see the section on Proxmox VE Node Management.</span>
<span>如果您需要在主机启动和第一个容器启动之间有延迟，请参阅Proxmox VE节点管理部分。</span></p><h3 id='hookscripts-钩子脚本'><span>Hookscripts 钩子脚本 </span></h3><p><span>You can add a hook script to CTs with the config property hookscript.</span>
<span>您可以使用配置属性 hookscript 向 CT 添加钩子脚本。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct set 100 -hookscript local:snippets/hookscript.pl</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>It will be called during various phases of the guests lifetime. For an example and documentation see the example script under /usr/share/pve-docs/examples/guest-example-hookscript.pl.</span>
<span>它将在客人生命周期的各个阶段被调用。有关示例和文档，请参阅 /usr/share/pve-docs/examples/guest-example-hookscript.pl 下的示例脚本。</span></p><h2 id='security-considerations-安全注意事项'><span>Security Considerations 安全注意事项</span></h2><p><span>Containers use the kernel of the host system. This exposes an attack surface for malicious users. In general, full virtual machines provide better isolation. This should be considered if containers are provided to unknown or untrusted people.</span>
<span>容器使用主机系统的内核。这会为恶意用户暴露攻击面。通常，完整虚拟机提供更好的隔离。如果将容器提供给未知或不受信任的人员，则应考虑这一点。</span></p><p><span>To reduce the attack surface, LXC uses many security features like AppArmor, CGroups and kernel namespaces.</span>
<span>为了减少攻击面，LXC 使用了许多安全功能，如 AppArmor、CGroups 和内核命名空间。</span></p><h3 id='apparmor'><span>AppArmor </span></h3><p><span>AppArmor profiles are used to restrict access to possibly dangerous actions. Some system calls, i.e. mount, are prohibited from execution.</span>
<span>AppArmor 配置文件用于限制对可能的危险操作的访问。某些系统调用（即 mount）被禁止执行。</span></p><p><span>To trace AppArmor activity, use:</span>
<span>要跟踪 AppArmor 活动，请使用：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># dmesg | grep apparmor</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Although it is not recommended, AppArmor can be disabled for a container. This brings security risks with it. Some syscalls can lead to privilege escalation when executed within a container if the system is misconfigured or if a LXC or Linux Kernel vulnerability exists.</span>
<span>尽管不建议这样做，但可以为容器禁用 AppArmor。这带来了安全隐患。如果系统配置错误或存在 LXC 或 Linux 内核漏洞，则在容器中执行某些系统调用时可能会导致权限提升。</span></p><p><span>To disable AppArmor for a container, add the following line to the container configuration file located at /etc/pve/lxc/CTID.conf:</span>
<span>要禁用容器的 AppArmor，请将以下行添加到位于 /etc/pve/lxc/CTID.conf 的容器配置文件中：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lxc.apparmor.profile = unconfined</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMVUlEQVRogdWZeXDVVZbHP7/f27JB%0AwtJIiCERRFlbx5FuHRrRBgtBsRIwCCOrFmGmiDBjYVNlQlgiQjU6IjI4xLJxGf5QGp0Cbaftsu3R%0Ahu6aYXqgLZoWEsjyyDP7S972e7/l3vnj5cW3Ji9M/zOn6lRS997fvd/vueece+59ipSS/89iv5mP%0AZEQQQsS23RQARVEAUFUVRVFQog0ZyogJSClld3c327Ztw7IsLMuKto90KgBsNhtVVVXMnj2bvLw8%0A7Ha7HBEJKWXGKoSQXV1dcsuWLfLSpUsyKkKIIdWyrLTqdrvlU089Jc+cOSM9Ho8Mh8NSCCEzxTRi%0A8JWVlbKtre0vAt6yLGmapmxtbZXr1q2TZ86ckW1tbSMikTH4GzduyKqqqkHwsSA1TZOhUChOg8Hg%0AoBqGIQ3DSAk+VleuXDliEspwviullD09PbzwwgscO3Yszt91XScQCNDZ2YlhGIPfuFwu7Pb48FJV%0AlZycnEG/z8/PRwiBqqqDYzweD88//zyrV69m7ty5jBs3DofDMWRgD0lASik9Hg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lVVSUvL4+SkhL27dvH8uXL8Xg8ceABiouLue+ttyieN2+IK2Z6TRx/5+LFacE3NDRQWVmZFjwk%0AnAOxJF566SW2bNnChQsXkmKipKSEB959l9vmzcvo1pZOpz/8ME98+mla8Bs2bGDZsmVpwUOa5/VE%0Ad0oXE319fXxWXs43Z88m9Q0n03/0I1YPJIRE8OfOnWPHjh2UlZUNCT4tgUQSO3fupKqqigceeGCw%0AP/a7VM8emUg0VcbK+fPn2bp1KytWrBgW/JAEEknU1NTw7LPPMn/+/GFBZQI8lZw/f57nnnuO5cuX%0AM2XKlGHBD0sgkURdXR2PP/44FRUVNwV+qP7Tp09z8ODBjNxmRAQSSRw4cIBly5axdOnSvwh4RVH4%0A4osv2L9/P2VlZRlbfkQEEkls376djo4OQqHE83bk4nK5EEKwZs0aSktLRwR+RATgOxItLS1cu3aN%0Avr6+wTfK/4tEfzeeMmUKkydPzhg8jJAAREgEg0H6+vrQNC2pFL8ZUVWVrKws8vPzycnJQVXVjH/s%0A/F/lgJiyQFHragAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Warning"></th><th><span>Please note that this is not recommended for production use. 请注意，不建议将其用于生产用途。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h3 id='control-groups-cgroup-控制组-cgroup）'><span>Control Groups (</span><em><span>cgroup</span></em><span>) 控制组 （</span><em><span>cgroup</span></em><span>） </span></h3><p><em><span>cgroup</span></em><span> is a kernel mechanism used to hierarchically organize processes and distribute system resources.</span>
<em><span>cgroup</span></em><span> 是一种内核机制，用于分层组织进程和分配系统资源。</span></p><p><span>The main resources controlled via </span><em><span>cgroups</span></em><span> are CPU time, memory and swap limits, and access to device nodes. </span><em><span>cgroups</span></em><span> are also used to &quot;freeze&quot; a container before taking snapshots.</span>
<span>通过 </span><em><span>cgroups</span></em><span> 控制的主要资源是 CPU 时间、内存和交换限制，以及对设备节点的访问。</span><em><span>cgroups</span></em><span> 还用于在拍摄快照之前“冻结”容器。</span></p><p><span>There are 2 versions of </span><em><span>cgroups</span></em><span> currently available, </span><a href='https://www.kernel.org/doc/html/v5.11/admin-guide/cgroup-v1/index.html'><span>legacy</span></a><span> and </span><a href='https://www.kernel.org/doc/html/v5.11/admin-guide/cgroup-v2.html'><em><span>cgroupv2</span></em></a><span>.</span>
<span>目前有 2 个版本的 </span><em><span>cgroups</span></em><span> 可用，</span><a href='https://www.kernel.org/doc/html/v5.11/admin-guide/cgroup-v1/index.html'><span>Legacy</span></a><span> 和 </span><a href='https://www.kernel.org/doc/html/v5.11/admin-guide/cgroup-v2.html'><em><span>cgroupv2</span></em></a><span>。</span></p><p><span>Since Proxmox VE 7.0, the default is a pure </span><em><span>cgroupv2</span></em><span> environment. Previously a &quot;hybrid&quot; setup was used, where resource control was mainly done in </span><em><span>cgroupv1</span></em><span> with an additional </span><em><span>cgroupv2</span></em><span> controller which could take over some subsystems via the </span><em><span>cgroup_no_v1</span></em><span> kernel command-line parameter. (See the </span><a href='https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html'><span>kernel parameter documentation</span></a><span> for details.)</span>
<span>从 Proxmox VE 7.0 开始，默认是纯 </span><em><span>cgroupv2</span></em><span> 环境。以前使用“混合”设置，其中资源控制主要在 </span><em><span>cgroupv1</span></em><span> 中完成，带有一个额外的 </span><em><span>cgroupv2</span></em><span> 控制器，该控制器可以通过 </span><em><span>cgroup_no_v1</span></em><span> 内核命令行参数接管一些子系统。（有关详细信息，请参阅</span><a href='https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html'><span>内核参数文档</span></a><span>。</span></p><h4 id='cgroup-version-compatibility-cgroup-版本兼容性'><span>CGroup Version Compatibility CGroup 版本兼容性</span></h4><p><span>The main difference between pure </span><em><span>cgroupv2</span></em><span> and the old hybrid environments regarding Proxmox VE is that with </span><em><span>cgroupv2</span></em><span> memory and swap are now controlled independently. The memory and swap settings for containers can map directly to these values, whereas previously only the memory limit and the limit of the </span><strong><span>sum</span></strong><span> of memory and swap could be limited.</span>
<span>关于 Proxmox VE 的纯 </span><em><span>cgroupv2</span></em><span> 和旧的混合环境之间的主要区别在于，使用 </span><em><span>cgroupv2</span></em><span> 内存和交换现在可以独立控制。容器的内存和交换设置可以直接映射到这些值，而以前只能限制内存限制以及内存和交换</span><strong><span>之和</span></strong><span>的限制。</span></p><p><span>Another important difference is that the </span><em><span>devices</span></em><span> controller is configured in a completely different way. Because of this, file system quotas are currently not supported in a pure </span><em><span>cgroupv2</span></em><span> environment.</span>
<span>另一个重要的区别是</span><em><span>设备</span></em><span>控制器的配置方式完全不同。因此，文件系统配额目前在纯 </span><em><span>cgroupv2</span></em><span> 环境中不受支持。</span></p><p><em><span>cgroupv2</span></em><span> support by the container’s OS is needed to run in a pure </span><em><span>cgroupv2</span></em><span> environment. Containers running </span><em><span>systemd</span></em><span> version 231 or newer support </span><em><span>cgroupv2</span></em><span> [</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnote_1'><span>1</span></a><span>], as do containers not using </span><em><span>systemd</span></em><span> as init system [</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnote_2'><span>2</span></a><span>].</span>
<span>要在纯 </span><em><span>cgroupv2</span></em><span> 环境中运行，需要容器操作系统的 </span><em><span>cgroupv2</span></em><span> 支持。运行 </span><em><span>systemd</span></em><span> 版本 231 或更高版本的容器支持 </span><em><span>cgroupv2</span></em><span> [</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnote_1'><span>1</span></a><span>]，不使用 </span><em><span>systemd</span></em><span> 作为初始化系统 [</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnote_2'><span>2</span></a><span>] 的容器也是如此。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsK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TkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>CentOS 7 and Ubuntu 16.10 are two prominent Linux distributions releases, which have a </span><em><span>systemd</span></em><span> version that is too old to run in a </span><em><span>cgroupv2</span></em><span> environment, you can either CentOS 7 和 Ubuntu 16.10 是两个著名的 Linux 发行版，它们的 </span><em><span>systemd</span></em><span> 版本太旧而无法在 </span><em><span>cgroupv2</span></em><span> 环境中运行，您可以Upgrade the whole distribution to a newer release. For the examples above, that could be Ubuntu 18.04 or 20.04, and CentOS 8 (or RHEL/CentOS derivatives like AlmaLinux or Rocky Linux). This has the benefit to get the newest bug and security fixes, often also new features, and moving the EOL date in the future. 将整个发行版升级到较新的版本。对于上面的例子，可能是 Ubuntu 18.04 或 20.04，以及 CentOS 8（或 RHEL/CentOS 衍生产品，如 AlmaLinux 或 Rocky Linux）。这样做的好处是可以获得最新的错误和安全修复，通常还有新功能，以及将来移动 EOL 日期。Upgrade the Containers systemd version. If the distribution provides a backports repository this can be an easy and quick stop-gap measurement. 升级 Containers systemd 版本。如果发行版提供了向后移植存储库，这可能是一个简单快捷的权宜之计。Move the container, or its services, to a Virtual Machine. Virtual Machines have a much less interaction with the host, that’s why one can install decades old OS versions just fine there. 将容器或其服务移动到虚拟机。虚拟机与主机的交互要少得多，这就是为什么人们可以在那里安装几十年前的操作系统版本。Switch back to the legacy </span><em><span>cgroup</span></em><span> controller. Note that while it can be a valid solution, it’s not a permanent one. Starting from Proxmox VE 9.0, the legacy controller will not be supported anymore. 切换回旧版 </span><em><span>cgroup</span></em><span> 控制器。请注意，虽然它可能是一个有效的解决方案，但它不是一个永久性的解决方案。从 Proxmox VE 9.0 开始，将不再支持传统控制器。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h4 id='changing-cgroup-version-更改-cgroup-版本'><span>Changing CGroup Version 更改 CGroup 版本</span></h4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gwcP0tHRQcW8G5ndsIBgaBYe1TvtyRYDMXWNZGyU+Ngwkiwz+GkfQ73vsWHDBhYvXkwkEmHW%0ArFmEw2G3M1eyR1pWczcXIh6PMz4+zvbt2+ns7OS2+x6kanYdqjeA1xdAUb3IioIoSjg42JaJaejo%0AmTRaOoGeTiHJEvGxYd55rZP29nbWrl1LOBymqqqKyspKKioqyjK+bIBcCE3TSCaTxGIxenp62LVr%0AF11dXdTUL2BO/Xx8/goEUcSxbYSJ2EGS5IlzgnSC/r4PuXzmOEuXLmXlypXU19cTCoUIh8OEQqEr%0A7k5/7vOBdDpNMpkkkUiQSCTo7u7m6NGjnD59mv7+fqLRKIZhoCgKoVCI2tpampqaWLRoES0tLfh8%0APvx+P8FgkGAw+OWfD7gj94RG13U0TSOdTpNOp8lMbmQ0TcvbArrrK1mW8Xg8eL3e7BLB5/N9dSc0%0AuSP3jMwwjKy4G3AXwB0ugAsx5YzMndW//DOy3OFMjGwrxrKs7NX9LBfAneFFUcxec6rU5zqpvCqA%0AqTCT16/0nPgLA/i6xjf+Xw3+B2ll/uiqTaJTAAAAAElFTkSuQmCC" referrerpolicy="no-referrer" alt="Tip"></th><th><span>If file system quotas are not required and all containers support </span><em><span>cgroupv2</span></em><span>, it is recommended to stick to the new default. 如果不需要文件系统配额，并且所有容器都支持 </span><em><span>cgroupv2</span></em><span>，则建议坚持使用新的默认值。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>To switch back to the previous version the following kernel command-line parameter can be used:</span>
<span>要切换回以前的版本，可以使用以下内核命令行参数：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">systemd.unified_cgroup_hierarchy=0</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>See this section on editing the kernel boot command line on where to add the parameter.</span>
<span>请参阅有关编辑内核引导命令行的部分，了解在何处添加参数。</span></p><h2 id='guest-operating-system-configuration-客户机操作系统配置'><span>Guest Operating System Configuration 客户机操作系统配置</span></h2><p><span>Proxmox VE tries to detect the Linux distribution in the container, and modifies some files. Here is a short list of things done at container startup:</span>
<span>Proxmox VE尝试检测容器中的Linux发行版，并修改了一些文件。以下是容器启动时完成的操作的简短列表：</span></p><ul><li><p><span>set /etc/hostname 设置 /etc/hostname</span></p><p><span>to set the container name 设置容器名称</span></p></li><li><p><span>modify /etc/hosts 修改 /etc/hosts</span></p><p><span>to allow lookup of the local hostname 允许查找本地主机名</span></p></li><li><p><span>network setup 网络设置</span></p><p><span>pass the complete network setup to the container 将完整的网络设置传递给容器</span></p></li><li><p><span>configure DNS 配置 DNS</span></p><p><span>pass information about DNS servers 传递有关 DNS 服务器的信息</span></p></li><li><p><span>adapt the init system 适配 init 系统</span></p><p><span>for example, fix the number of spawned getty processes 例如，修复生成的 Getty 进程数</span></p></li><li><p><span>set the root password 设置 root 密码</span></p><p><span>when creating a new container 创建新容器时</span></p></li><li><p><span>rewrite ssh_host_keys 重写ssh_host_keys</span></p><p><span>so that each container has unique keys 使每个容器都有唯一的键</span></p></li><li><p><span>randomize crontab 随机化 crontab</span></p><p><span>so that cron does not start at the same time on all containers 这样 cron 就不会在所有容器上同时启动</span></p></li></ul><p><span>Changes made by Proxmox VE are enclosed by comment markers:</span>
<span>Proxmox VE所做的更改由注释标记括起来：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># --- BEGIN PVE ---</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">&lt;data&gt;</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># --- END PVE ---</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 78px;"></div><div class="CodeMirror-gutters" style="display: none; height: 78px;"></div></div></div></pre><p><span>Those markers will be inserted at a reasonable location in the file. If such a section already exists, it will be updated in place and will not be moved.</span>
<span>这些标记将入到文件中的合理位置。如果此类部分已存在，则将就地进行更新，并且不会移动。</span></p><p><span>Modification of a file can be prevented by adding a .pve-ignore. file for it. For instance, if the file /etc/.pve-ignore.hosts exists then the /etc/hosts file will not be touched. This can be a simple empty file created via:</span>
<span>可以通过添加 .pve-ignore 文件来防止修改文件。例如，如果文件 /etc/.pve-ignore.hosts 存在，则不会触及 /etc/hosts 文件。这可以是通过以下方式创建的简单空文件：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># touch /etc/.pve-ignore.hosts</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Most modifications are OS dependent, so they differ between different distributions and versions. You can completely disable modifications by manually setting the ostype to unmanaged.</span>
<span>大多数修改都依赖于操作系统，因此它们在不同的发行版和版本之间有所不同。您可以通过手动将 ostype 设置为 unmanaged 来完全禁用修改。</span></p><p><span>OS type detection is done by testing for certain files inside the container. Proxmox VE first checks the /etc/os-release file [</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnote_3'><span>3</span></a><span>]. If that file is not present, or it does not contain a clearly recognizable distribution identifier the following distribution specific release files are checked.</span>
<span>操作系统类型检测是通过测试容器内的某些文件来完成的。Proxmox VE首先检查/etc/os-release文件 3]。如果该文件不存在，或者它不包含清晰可识别的分发标识符，则将检查以下特定于分发的发布文件。</span></p><ul><li><p><span>Ubuntu Ubuntu的</span></p><p><span>inspect /etc/lsb-release (DISTRIB_ID=Ubuntu) 检查 /etc/lsb-release （DISTRIB_ID=Ubuntu）</span></p></li><li><p><span>Debian Debian 的</span></p><p><span>test /etc/debian_version 测试 /etc/debian_version</span></p></li><li><p><span>Fedora Fedora 软呢帽</span></p><p><span>test /etc/fedora-release 测试 /etc/fedora-release</span></p></li><li><p><span>RedHat or CentOS RedHat 或 CentOS</span></p><p><span>test /etc/redhat-release 测试 /etc/redhat-release</span></p></li><li><p><span>ArchLinux ArchLinux的</span></p><p><span>test /etc/arch-release 测试 /etc/arch-release</span></p></li><li><p><span>Alpine 高山</span></p><p><span>test /etc/alpine-release 测试 /etc/alpine-release</span></p></li><li><p><span>Gentoo 巴布亚</span></p><p><span>test /etc/gentoo-release 测试 /etc/gentoo-release</span></p></li></ul><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgpGlKjPEF%0A0TpT5pUDRXiVt99+Le03r+WzuytM1gO6pB/3+o0cbxvk8yOPMjW6i2iR2lxOjJDHSDMFogmGwzQ7%0ArRJAUpAENAGXIZq2AFzQpvkACCEQcahP+cRH3sKHn9zHXU+MM7rtGeD33NDXzaZynZU9gcezpUw9%0AX6OzIyOakkfF4Q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X10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>Container start fails if the configured ostype differs from the auto detected type. 如果配置的 ostype 与自动检测的类型不同，则容器启动将失败。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h2 id='container-storage-集装箱存储'><span>Container Storage 集装箱存储</span></h2><p><span>The Proxmox VE LXC container storage model is more flexible than traditional container storage models. A container can have multiple mount points. This makes it possible to use the best suited storage for each application.</span>
<span>Proxmox VE LXC 集装箱存储模型比传统的集装箱存储模型更灵活。一个容器可以有多个挂载点。这使得为每个应用程序使用最适合的存储成为可能。</span></p><p><span>For example the root file system of the container can be on slow and cheap storage while the database can be on fast and distributed storage via a second mount point. See section </span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_mount_points'><span>Mount Points</span></a><span> for further details.</span>
<span>例如，容器的根文件系统可以位于慢速且廉价的存储上，而数据库可以通过第二个挂载点使用快速且分布式的存储。有关详细信息，请参阅</span><a href='https://pve.proxmox.com/pve-docs/pct.1.html#pct_mount_points'><span>“挂载点”</span></a><span>部分。</span></p><p><span>Any storage type supported by the Proxmox VE storage library can be used. This means that containers can be stored on local (for example lvm, zfs or directory), shared external (like iSCSI, NFS) or even distributed storage systems like Ceph. Advanced storage features like snapshots or clones can be used if the underlying storage supports them. The vzdump backup tool can use snapshots to provide consistent container backups.</span>
<span>可以使用Proxmox VE存储库支持的任何存储类型。这意味着容器可以存储在本地（例如 lvm、zfs 或目录）、共享外部（如 iSCSI、NFS）甚至分布式存储系统（如 Ceph）上。如果底层存储支持快照或克隆等高级存储功能，则可以使用它们。vzdump 备份工具可以使用快照来提供一致的容器备份。</span></p><p><span>Furthermore, local devices or local directories can be mounted directly using </span><em><span>bind mounts</span></em><span>. This gives access to local resources inside a container with practically zero overhead. Bind mounts can be used as an easy way to share data between containers.</span>
<span>此外，本地设备或本地目录可以直接使用</span><em><span>绑定挂载进行</span></em><span>挂载。这使您可以访问容器内的本地资源，而开销几乎为零。绑定挂载可以用作在容器之间共享数据的简单方法。</span></p><h3 id='fuse-mounts-保险丝安装'><span>FUSE Mounts 保险丝安装 </span></h3><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMVUlEQVRogdWZeXDVVZbHP7/f27JB%0AwtJIiCERRFlbx5FuHRrRBgtBsRIwCCOrFmGmiDBjYVNlQlgiQjU6IjI4xLJxGf5QGp0Cbaftsu3R%0Ahu6aYXqgLZoWEsjyyDP7S972e7/l3vnj5cW3Ji9M/zOn6lRS997fvd/vueece+59ipSS/89iv5mP%0AZEQQQsS23RQARVEAUFUVRVFQog0ZyogJSClld3c327Ztw7IsLMuKto90KgBsNhtVVVXMnj2bvLw8%0A7Ha7HBEJKWXGKoSQXV1dcsuWLfLSpUsyKkKIIdWyrLTqdrvlU089Jc+cOSM9Ho8Mh8NSCCEzxTRi%0A8JWVlbKtre0vAt6yLGmapmxtbZXr1q2TZ86ckW1tbSMikTH4GzduyKqqqkHwsSA1TZOhUChOg8Hg%0AoBqGIQ3DSAk+VleuXDliEspwviullD09PbzwwgscO3Yszt91XScQCNDZ2YlhGIPfuFwu7Pb48FJV%0AlZycnEG/z8/PRwiBqqqDYzweD88//zyrV69m7ty5jBs3DofDMWRgD0lASik9Hg979uzh2LFjcYEa%0ACoVob2/n2q9+hbZ585BGSCWltbVMr61NtSYbN25k7d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+LFacE3NDRQWVmZFjwk%0AnAOxJF566SW2bNnChQsXkmKipKSEB959l9vmzcvo1pZOpz/8ME98+mla8Bs2bGDZsmVpwUOa5/VE%0Ad0oXE319fXxWXs43Z88m9Q0n03/0I1YPJIRE8OfOnWPHjh2UlZUNCT4tgUQSO3fupKqqigceeGCw%0AP/a7VM8emUg0VcbK+fPn2bp1KytWrBgW/JAEEknU1NTw7LPPMn/+/GFBZQI8lZw/f57nnnuO5cuX%0AM2XKlGHBD0sgkURdXR2PP/44FRUVNwV+qP7Tp09z8ODBjNxmRAQSSRw4cIBly5axdOnSvwh4RVH4%0A4osv2L9/P2VlZRlbfkQEEkls376djo4OQqHE83bk4nK5EEKwZs0aSktLRwR+RATgOxItLS1cu3aN%0Avr6+wTfK/4tEfzeeMmUKkydPzhg8jJAAREgEg0H6+vrQNC2pFL8ZUVWVrKws8vPzycnJQVXVjH/s%0A/F/lgJiyQFHragAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Warning"></th><th><span>Because of existing issues in the Linux kernel’s freezer subsystem the usage of FUSE mounts inside a container is strongly advised against, as containers need to be frozen for suspend or snapshot mode backups. 由于 Linux 内核的冻结子系统中存在问题，强烈建议不要在容器内使用 FUSE 挂载，因为需要冻结容器以进行挂起或快照模式备份。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>If FUSE mounts cannot be replaced by other mounting mechanisms or storage technologies, it is possible to establish the FUSE mount on the Proxmox host and use a bind mount point to make it accessible inside the container.</span>
<span>如果 FUSE 挂载无法被其他挂载机构或存储技术替换，则可以在 Proxmox 主机上建立 FUSE 挂载，并使用绑定挂载点使其在容器内部可访问。</span></p><h3 id='using-quotas-inside-containers-在容器内使用配额'><span>Using Quotas Inside Containers 在容器内使用配额 </span></h3><p><span>Quotas allow to set limits inside a container for the amount of disk space that each user can use.</span>
<span>配额允许在容器内为每个用户可以使用的磁盘空间量设置限制。</span></p><figure class='table-figure'><table><thead><tr><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DQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>This currently requires the use of legacy </span><em><span>cgroups</span></em><span>. 这目前需要使用旧版 </span><em><span>cgroups</span></em><span>。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sT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X/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>This only works on ext4 image based storage types and currently only works with privileged containers. 这仅适用于基于 ext4 镜像的存储类型，目前仅适用于特权容器。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>Activating the quota option causes the following mount options to be used for a mount point: usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0</span>
<span>激活配额选项会导致将以下挂载选项用于挂载点：usrjquota=aquota.user，grpjquota=aquota.group，jqfmt=vfsv0</span></p><p><span>This allows quotas to be used like on any other system. You can initialize the /aquota.user and /aquota.group files by running:</span>
<span>这允许像在任何其他系统上一样使用配额。您可以通过运行以下命令来初始化 /aquota.user 和 /aquota.group 文件：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># quotacheck -cmug /</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># quotaon /</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><p><span>Then edit the quotas using the edquota command. Refer to the documentation of the distribution running inside the container for details.</span>
<span>然后使用 edquota 命令编辑配额。有关详细信息，请参阅在容器内运行的分发的文档。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRB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yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>You need to run the above commands for every mount point by passing the mount point’s path instead of just /. 您需要通过传递挂载点的路径而不是仅 / 来为每个挂载点运行上述命令。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h3 id='using-acls-inside-containers-在容器内使用-acl'><span>Using ACLs Inside Containers 在容器内使用 ACL </span></h3><p><span>The standard Posix </span><strong><span>A</span></strong><span>ccess </span><strong><span>C</span></strong><span>ontrol </span><strong><span>L</span></strong><span>ists are also available inside containers. ACLs allow you to set more detailed file ownership than the traditional user/group/others model.</span>
<span>标准的 Posix</span><strong><span>、A</span></strong><span>、ccess、</span><strong><span>C</span></strong><span>、ontrol、</span><strong><span>L</span></strong><span>ists 也可在容器内使用。ACL 允许您设置比传统用户/组/其他模型更详细的文件所有权。</span></p><h3 id='backup-of-container-mount-points-容器挂载点的备份'><span>Backup of Container mount points 容器挂载点的备份 </span></h3><p><span>To include a mount point in backups, enable the backup option for it in the container configuration. For an existing mount point mp0</span>
<span>要在备份中包含挂载点，请在容器配置中为其启用备份选项。对于现有挂载点 mp0</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">mp0: guests:subvol-100-disk-1,mp=/root/files,size=8G</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>add backup=1 to enable it.</span>
<span>添加 backup=1 以启用它。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">mp0: guests:subvol-100-disk-1,mp=/root/files,size=8G,backup=1</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgpGlKjPEF%0A0TpT5pUDRXiVt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Dy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>When creating a new mount point in the GUI, this option is enabled by default. 在 GUI 中创建新的挂载点时，此选项默认处于启用状态。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>To disable backups for a mount point, add backup=0 in the way described above, or uncheck the </span><strong><span>Backup</span></strong><span> checkbox on the GUI.</span>
<span>要禁用挂载点的备份，请按照上述方式添加 backup=0，或取消选中 GUI 上的 </span><strong><span>Backup</span></strong><span> 复选框。</span></p><h3 id='replication-of-containers-mount-points-容器挂载点的复制'><span>Replication of Containers mount points 容器挂载点的复制 </span></h3><p><span>By default, additional mount points are replicated when the Root Disk is replicated. If you want the Proxmox VE storage replication mechanism to skip a mount point, you can set the </span><strong><span>Skip replication</span></strong><span> option for that mount point. As of Proxmox VE 5.0, replication requires a storage of type zfspool. Adding a mount point to a different type of storage when the container has replication configured requires to have </span><strong><span>Skip replication</span></strong><span> enabled for that mount point.</span>
<span>默认情况下，在复制根磁盘时，会复制其他挂载点。如果您希望 Proxmox VE 存储复制机制跳过挂载点，您可以为该挂载点设置</span><strong><span>跳过复制</span></strong><span>选项。从 Proxmox VE 5.0 开始，复制需要 zfspool 类型的存储。当容器配置了复制时，将挂载点添加到不同类型的存储需要为该挂载点启用</span><strong><span>跳过复制</span></strong><span>。</span></p><h2 id='backup-and-restore-备份和恢复'><span>Backup and Restore 备份和恢复</span></h2><h3 id='container-backup-容器备份'><span>Container Backup 容器备份 </span></h3><p><span>It is possible to use the vzdump tool for container backup. Please refer to the vzdump manual page for details.</span>
<span>可以使用 vzdump 工具进行容器备份。有关详细信息，请参阅 vzdump 手册页。</span></p><h3 id='restoring-container-backups-还原容器备份'><span>Restoring Container Backups 还原容器备份 </span></h3><p><span>Restoring container backups made with vzdump is possible using the pct restore command. By default, pct restore will attempt to restore as much of the backed up container configuration as possible. It is possible to override the backed up configuration by manually setting container options on the command line (see the pct manual page for details).</span>
<span>可以使用 pct restore 命令恢复使用 vzdump 创建的容器备份。默认情况下，pct restore 将尝试尽可能多地恢复已备份的容器配置。可以通过在命令行上手动设置容器选项来覆盖备份的配置（有关详细信息，请参见 pct 手册页）。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD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IMamaaUOl5WRrzg00viuKWWxpQUOH%0ANAZFQRpD48Xlkig0MTHBB95zG+VSylz1KCbWyDOh2XyK+56IqjWMKigkUnzWnPPFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>pvesm extractconfig can be used to view the backed up configuration contained in a vzdump archive. PVESM ExtractConfig 可用于查看 vzdump 归档文件中包含的备份配置。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>There are two basic restore modes, only differing by their handling of mount points:</span>
<span>有两种基本的还原模式，仅在于它们对挂载点的处理：</span></p><h4 id='simple-restore-mode-简单恢复模式'><span>“Simple” Restore Mode “简单”恢复模式</span></h4><p><span>If neither the rootfs parameter nor any of the optional mpX parameters are explicitly set, the mount point configuration from the backed up configuration file is restored using the following steps:</span>
<span>如果既未显式设置 rootfs 参数，也未明确设置任何可选的 mpX 参数，则将使用以下步骤从备份的配置文件中恢复挂载点配置：</span></p><ol><li><p><span>Extract mount points and their options from backup</span>
<span>从备份中提取挂载点及其选项</span></p></li><li><p><span>Create volumes for storage backed mount points on the storage provided with the storage parameter (default: local).</span>
<span>在使用 storage 参数（默认值：local）提供的存储上为存储支持的挂载点创建卷。</span></p></li><li><p><span>Extract files from backup archive</span>
<span>从备份存档中提取文件</span></p></li><li><p><span>Add bind and device mount points to restored configuration (limited to root user)</span>
<span>将绑定点和设备挂载点添加到恢复的配置中（仅限 root 用户）</span></p></li></ol><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgn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08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>Since bind and device mount points are never backed up, no files are restored in the last step, but only the configuration options. The assumption is that such mount points are either backed up with another mechanism (e.g., NFS space that is bind mounted into many containers), or not intended to be backed up at all. 由于从不备份绑定点和设备挂载点，因此在最后一步中不会恢复任何文件，而只会恢复配置选项。假设此类挂载点要么使用另一种机制进行备份（例如，绑定挂载到许多容器中的 NFS 空间），要么根本不打算备份。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>This simple mode is also used by the container restore operations in the web interface.</span>
<span>Web 界面中的容器还原操作也使用此简单模式。</span></p><h4 id='advanced-restore-mode-高级还原模式'><span>“Advanced” Restore Mode “高级”还原模式</span></h4><p><span>By setting the rootfs parameter (and optionally, any combination of mpX parameters), the pct restore command is automatically switched into an advanced mode. This advanced mode completely ignores the rootfs and mpX configuration options contained in the backup archive, and instead only uses the options explicitly provided as parameters.</span>
<span>通过设置 rootfs 参数（以及可选的 mpX 参数的任意组合），pct restore 命令会自动切换到高级模式。此高级模式完全忽略备份存档中包含的 rootfs 和 mpX 配置选项，而是仅使用明确提供的选项作为参数。</span></p><p><span>This mode allows flexible configuration of mount point settings at restore time, for example:</span>
<span>此模式允许在还原时灵活配置挂载点设置，例如：</span></p><ul><li><p><span>Set target storages, volume sizes and other options for each mount point individually</span>
<span>为每个挂载点单独设置目标存储、卷大小和其他选项</span></p></li><li><p><span>Redistribute backed up files according to new mount point scheme</span>
<span>根据新的挂载点方案重新分发备份的文件</span></p></li><li><p><span>Restore to device and/or bind mount points (limited to root user)</span>
<span>恢复到设备和/或绑定挂载点（仅限 root 用户）</span></p></li></ul><h2 id='managing-containers-with-pct-使用-pct-管理容器'><span>Managing Containers with pct 使用 pct 管理容器 </span></h2><p><span>The “Proxmox Container Toolkit” (pct) is the command-line tool to manage Proxmox VE containers. It enables you to create or destroy containers, as well as control the container execution (start, stop, reboot, migrate, etc.). It can be used to set parameters in the config file of a container, for example the network configuration or memory limits.</span>
<span>“Proxmox Container Toolkit”（pct）是管理Proxmox VE容器的命令行工具。它使您能够创建或销毁容器，以及控制容器执行（启动、停止、重启、迁移等）。它可用于在容器的配置文件中设置参数，例如网络配置或内存限制。</span></p><h3 id='cli-usage-examples-cli-使用示例'><span>CLI Usage Examples CLI 使用示例 </span></h3><p><span>Create a container based on a Debian template (provided you have already downloaded the template via the web interface)</span>
<span>基于 Debian 模板创建容器（前提是您已经通过 Web 界面下载了模板）</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct create 100 /var/lib/vz/template/cache/debian-10.0-standard_10.0-1_amd64.tar.gz</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><p><span>Start container 100 启动容器 100</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct start 100</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Start a login session via getty</span>
<span>通过 getty 开始登录会话</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct console 100</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Enter the LXC namespace and run a shell as root user</span>
<span>进入 LXC 命名空间并以 root 用户身份运行 shell</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct enter 100</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Display the configuration</span>
<span>显示配置</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct config 100</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Add a network interface called eth0, bridged to the host bridge vmbr0, set the address and gateway, while it’s running</span>
<span>添加一个名为 eth0 的网络接口，桥接到主机桥接器 vmbr0，在其运行时设置地址和网关</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct set 100 -net0 name=eth0,bridge=vmbr0,ip=192.168.15.147/24,gw=192.168.15.1</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><p><span>Reduce the memory of the container to 512MB</span>
<span>将容器的内存减少到 512MB</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct set 100 -memory 512</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Destroying a container always removes it from Access Control Lists and it always removes the firewall configuration of the container. You have to activate </span><em><span>--purge</span></em><span>, if you want to additionally remove the container from replication jobs, backup jobs and HA resource configurations.</span>
<span>销毁容器始终会将其从访问控制列表中删除，并且始终会删除容器的防火墙配置。如果要从复制作业、备份作业和 HA 资源配置中额外删除容器，则必须激活 </span><em><span>--purge</span></em><span>。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct destroy 100 --purge</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Move a mount point volume to a different storage.</span>
<span>将挂载点卷移动到其他存储。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct move-volume 100 mp0 other-storage</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Reassign a volume to a different CT. This will remove the volume mp0 from the source CT and attaches it as mp1 to the target CT. In the background the volume is being renamed so that the name matches the new owner.</span>
<span>将体积重新分配给不同的 CT。这将从源 CT 中删除音量 mp0，并将其作为 mp1 连接到目标 CT。在后台，正在重命名卷，以便名称与新所有者匹配。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">#  pct move-volume 100 mp0 --target-vmid 200 --target-volume mp1</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><h3 id='obtaining-debugging-logs-获取调试日志'><span>Obtaining Debugging Logs 获取调试日志 </span></h3><p><span>In case pct start is unable to start a specific container, it might be helpful to collect debugging output by passing the --debug flag (replace CTID with the container’s CTID):</span>
<span>如果 pct start 无法启动特定容器，通过传递 --debug 标志（将 CTID 替换为容器的 CTID）来收集调试输出可能会有所帮助：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct start CTID --debug</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>Alternatively, you can use the following lxc-start command, which will save the debug log to the file specified by the -o output option:</span>
<span>或者，您可以使用以下 lxc-start 命令，该命令会将调试日志保存到 -o 输出选项指定的文件中：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># lxc-start -n CTID -F -l DEBUG -o /tmp/lxc-CTID.log</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>This command will attempt to start the container in foreground mode, to stop the container run pct shutdown CTID or pct stop CTID in a second terminal.</span>
<span>此命令将尝试在前台模式下启动容器，以停止容器，在第二个终端中运行 pct shutdown CTID 或 pct stop CTID。</span></p><p><span>The collected debug log is written to /tmp/lxc-CTID.log.</span>
<span>收集的调试日志将写入 /tmp/lxc-CTID.log。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJycpJpg4/hp/N0I4SMQs4Jw0A5zBXHGiCaIZIKABgp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XKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>If you have changed the container’s configuration since the last start attempt with pct start, you need to run pct start at least once to also update the configuration used by lxc-start. 如果自上次尝试使用 pct start 启动以来更改了容器的配置，则需要至少运行 pct start 一次以同时更新 lxc-start 使用的配置。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h2 id='migration-迁移'><span>Migration 迁移</span></h2><p><span>If you have a cluster, you can migrate your Containers with</span>
<span>如果您有集群，则可以使用</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct migrate &lt;ctid&gt; &lt;target&gt;</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>This works as long as your Container is offline. If it has local volumes or mount points defined, the migration will copy the content over the network to the target host if the same storage is defined there.</span>
<span>只要您的容器处于离线状态，这就会起作用。如果定义了本地卷或装入点，则迁移会通过网络将内容复制到目标主机（如果在那里定义了相同的存储）。</span></p><p><span>Running containers cannot live-migrated due to technical limitations. You can do a restart migration, which shuts down, moves and then starts a container again on the target node. As containers are very lightweight, this results normally only in a downtime of some hundreds of milliseconds.</span>
<span>由于技术限制，正在运行的容器无法实时迁移。您可以执行重新启动迁移，该迁移将在目标节点上关闭、移动并重新启动容器，然后再次启动。由于容器非常轻巧，这通常只会导致数百毫秒的停机时间。</span></p><p><span>A restart migration can be done through the web interface or by using the --restart flag with the pct migrate command.</span>
<span>可以通过 Web 界面或使用 --restart 标志和 pct migrate 命令来完成重新启动迁移。</span></p><p><span>A restart migration will shut down the Container and kill it after the specified timeout (the default is 180 seconds). Then it will migrate the Container like an offline migration and when finished, it starts the Container on the target node.</span>
<span>重新启动迁移将关闭容器，并在指定的超时（默认值为 180 秒）后终止它。然后，它将像脱机迁移一样迁移容器，完成后，它会在目标节点上启动容器。</span></p><h2 id='configuration-配置'><span>Configuration 配置</span></h2><p><span>The /etc/pve/lxc/</span><CTID><span>.conf file stores container configuration, where </span><CTID><span> is the numeric ID of the given container. Like all other files stored inside /etc/pve/, they get automatically replicated to all other cluster nodes.</span>
<span>/etc/pve/lxc/</span><CTID><span>.conf 文件存储容器配置，其中 </span><CTID><span> 是给定容器的数字 ID。像存储在 /etc/pve/ 中的所有其他文件一样，它们会自动复制到所有其他集群节点。</span></p><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQEZxzZ32QJAlpmrb+p16vU6vVOHXq1AWjN18AnDj0F971vrs4OnmYJVkoDA4FCPUO172I%0ACgnt7SV++4vvsGhRJx3tJbIsRVVpsUnOBBABBVFEClKYwbKr7sTM7EIUnBcA7z21k7t49x1X8JXv%0AbOWra7rw5QRtcN8PLCfvvZJvb9vJ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0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"></th><th><span>CTIDs &lt; 100 are reserved for internal purposes, and CTIDs need to be unique cluster wide. &lt; 100 的 CTID 保留用于内部用途，并且 CTID 需要在集群范围内是唯一的。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><p><span>Example Container Configuration</span>
<span>容器配置示例</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">ostype: debian</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">arch: amd64</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">hostname: www</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">memory: 512</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">swap: 512</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">net0: bridge=vmbr0,hwaddr=66:64:66:64:64:36,ip=dhcp,name=eth0,type=veth</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">rootfs: local:107/vm-107-disk-1.raw,size=7G</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 234px;"></div><div class="CodeMirror-gutters" style="display: none; height: 234px;"></div></div></div></pre><p><span>The configuration files are simple text files. You can edit them using a normal text editor, for example, vi or nano. This is sometimes useful to do small corrections, but keep in mind that you need to restart the container to apply such changes.</span>
<span>配置文件是简单的文本文件。您可以使用普通文本编辑器（例如 vi 或 nano）编辑它们。这有时对于进行小的更正很有用，但请记住，您需要重新启动容器才能应用此类更改。</span></p><p><span>For that reason, it is usually better to use the pct command to generate and modify those files, or do the whole thing using the GUI. Our toolkit is smart enough to instantaneously apply most changes to running containers. This feature is called “hot plug”, and there is no need to restart the container in that case.</span>
<span>因此，通常最好使用 pct 命令来生成和修改这些文件，或者使用 GUI 执行整个操作。我们的工具包足够智能，可以立即将大多数更改应用于正在运行的容器。此功能称为“热插拔”，在这种情况下无需重新启动容器。</span></p><p><span>In cases where a change cannot be hot-plugged, it will be registered as a pending change (shown in red color in the GUI). They will only be applied after rebooting the container.</span>
<span>如果无法热插拔更改，则会将其注册为待处理更改（在 GUI 中以红色显示）。它们仅在重新启动容器后应用。</span></p><h3 id='file-format-文件格式'><span>File Format 文件格式 </span></h3><p><span>The container configuration file uses a simple colon separated key/value format. Each line has the following format:</span>
<span>容器配置文件使用简单的冒号分隔键/值格式。每行都有以下格式：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># this is a comment</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">OPTION: value</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 52px;"></div><div class="CodeMirror-gutters" style="display: none; height: 52px;"></div></div></div></pre><p><span>Blank lines in those files are ignored, and lines starting with a # character are treated as comments and are also ignored.</span>
<span>这些文件中的空行将被忽略，以 # 字符开头的行将被视为注释，并且也会被忽略。</span></p><p><span>It is possible to add low-level, LXC style configuration directly, for example:</span>
<span>可以直接添加低级的 LXC 样式配置，例如：</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lxc.init_cmd: /sbin/my_own_init</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>or 或</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">lxc.init_cmd = /sbin/my_own_init</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><p><span>The settings are passed directly to the LXC low-level tools.</span>
<span>设置直接传递给 LXC 低级工具。</span></p><h3 id='snapshots-快照'><span>Snapshots 快照 </span></h3><p><span>When you create a snapshot, pct stores the configuration at snapshot time into a separate snapshot section within the same configuration file. For example, after creating a snapshot called “testsnapshot”, your configuration file will look like this:</span>
<span>当您创建快照时，pct 会在快照时将配置存储到同一配置文件中的单独快照部分中。例如，在创建名为“testsnapshot”的快照后，您的配置文件将如下所示：</span></p><p><span>Container configuration with snapshot</span>
<span>带有快照的容器配置</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation" style=""><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">memory: 512</span></pre></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">swap: 512</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">parent: testsnaphot</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">...</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="" cm-zwsp="">
</span></span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">[testsnaphot]</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">memory: 512</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">swap: 512</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">snaptime: 1457170803</span></pre><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">...</span></pre></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 260px;"></div><div class="CodeMirror-gutters" style="display: none; height: 260px;"></div></div></div></pre><p><span>There are a few snapshot related properties like parent and snaptime. The parent property is used to store the parent/child relationship between snapshots. snaptime is the snapshot creation time stamp (Unix epoch).</span>
<span>有一些与快照相关的属性，如父和 snaptime。parent 属性用于存储快照之间的父/子关系。snaptime 是快照创建时间戳（Unix 纪元）。</span></p><h3 id='options-选项'><span>Options 选项 </span></h3><ul><li><p><span>arch: &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt; (</span><em><span>default =</span></em><span> amd64) arch： &lt;amd64 | arm64 | armhf | i386 | riscv32 | riscv64&gt; （</span><em><span>默认值 =</span></em><span> amd64）</span></p><p><span>OS architecture type. 操作系统体系结构类型。</span></p></li><li><p><span>cmode: &lt;console | shell | tty&gt; (</span><em><span>default =</span></em><span> tty) cmode： &lt;console | shell | tty&gt;（</span><em><span>默认值 =</span></em><span> tty）</span></p><p><span>Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to </span><em><span>console</span></em><span> it tries to attach to /dev/console instead. If you set cmode to </span><em><span>shell</span></em><span>, it simply invokes a shell inside the container (no login). 控制台模式。默认情况下，console 命令会尝试打开与其中一个可用 tty 设备的连接。通过将 cmode 设置为 </span><em><span>console</span></em><span>，它会尝试连接到 /dev/console。如果将 cmode 设置为 </span><em><span>shell</span></em><span>，它只会在容器内调用一个 shell（无需登录）。</span></p></li><li><p><span>console: </span><boolean><span> (</span><em><span>default =</span></em><span> 1) 控制台： </span><boolean><span> （</span><em><span>default =</span></em><span> 1）</span></p><p><span>Attach a console device (/dev/console) to the container. 将控制台设备 （/dev/console） 连接到容器。</span></p></li><li><p><span>cores: </span><integer><span> (1 - 8192) 核心数： </span><integer><span> （1 - 8192）</span></p><p><span>The number of cores assigned to the container. A container can use all available cores by default. 分配给容器的核心数。默认情况下，容器可以使用所有可用核心。</span></p></li><li><p><span>cpulimit: </span><number><span> (0 - 8192) (</span><em><span>default =</span></em><span> 0) cpulimit： </span><number><span> （0 - 8192） （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Limit of CPU usage. CPU 使用率限制。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4Ll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zWnPPFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>If the computer has 2 CPUs, it has a total of </span><em><span>2</span></em><span> CPU time. Value </span><em><span>0</span></em><span> indicates no CPU limit. 如果计算机有 2 个 CPU，则总共有 </span><em><span>2</span></em><span> 个 CPU 时间。值 </span><em><span>0</span></em><span> 表示没有 CPU 限制。</span></p></li><li><p><span>cpuunits: </span><integer><span> (0 - 500000) (</span><em><span>default =</span></em><span> cgroup v1: 1024, cgroup v2: 100) cpuunits： </span><integer><span> （0 - 500000） （</span><em><span>默认值 =</span></em><span> cgroup v1： 1024， cgroup v2： 100）</span></p><p><span>CPU weight for a container. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running guests. 容器的 CPU 权重。参数在内核公平调度器中使用。数字越大，此容器获得的 CPU 时间就越多。该数字与所有其他正在运行的访客的权重有关。</span></p></li><li><p><span>debug: </span><boolean><span> (</span><em><span>default =</span></em><span> 0) debug： </span><boolean><span> （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Try to be more verbose. For now this only enables debug log-level on start. 尽量更详细。目前，这仅在启动时启用调试日志级别。</span></p></li><li><p><span>description: </span><string><span> 描述： </span><string></p><p><span>Description for the Container. Shown in the web-interface CT’s summary. This is saved as comment inside the configuration file. 容器的说明。显示在 Web 界面 CT 的摘要中。这将在配置文件中另存为注释。</span></p></li><li><p><span>dev[n]: [[path=]</span><Path><span>] [,gid=</span><integer><span>] [,mode=</span><Octal access mode><span>] [,uid=</span><integer><span>] dev[n]： [[path=]</span><Path><span>] [，gid=</span><integer><span>] [，mode=</span><ctal access mode><span>] [，uid=</span><integer><span>]</span></p><p><span>Device to pass through to the container 要传递到容器的设备gid=</span><integer><span> (0 - N) gid=</span><integer><span> （0 - N）Group ID to be assigned to the device node 要分配给设备节点的组 IDmode=</span><Octal access mode><span> mode=&lt;实际访问模式&gt;Access mode to be set on the device node 在设备节点上设置访问模式path=</span><Path><span> 路径=</span><Path><span>Path to the device to pass through to the container 要传递到容器的设备路径uid=</span><integer><span> (0 - N) uid=</span><integer><span> （0 - N）User ID to be assigned to the device node 要分配给设备节点的用户 ID</span></p></li><li><p><span>features: [force_rw_sys=&lt;1|0&gt;] [,fuse=&lt;1|0&gt;] [,keyctl=&lt;1|0&gt;] [,mknod=&lt;1|0&gt;] [,mount=&lt;fstype;fstype;...&gt;] [,nesting=&lt;1|0&gt;] 特性： [force_rw_sys=&lt;1|0&gt;] [，fuse=&lt;1|0&gt;] [，keyctl=&lt;1|0&gt;] [，mknod=&lt;1|0&gt;] [，mount=&lt;fstype;fstype;...&gt;] [，nesting=&lt;1|0&gt;]</span></p><p><span>Allow containers access to advanced features. 允许容器访问高级功能。force_rw_sys=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) force_rw_sys=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Mount /sys in unprivileged containers as rw instead of mixed. This can break networking under newer (&gt;= v245) systemd-network use. 将 /sys 挂载到 rw 而不是混合容器中。这可能会在较新的 （&gt;= v245） systemd-network 使用下中断网络。fuse=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) fuse=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Allow using </span><em><span>fuse</span></em><span> file systems in a container. Note that interactions between fuse and the freezer cgroup can potentially cause I/O deadlocks. 允许在容器中使用 </span><em><span>fuse</span></em><span> 文件系统。请注意，保险丝和冷冻库 cgroup 之间的交互可能会导致 I/O 死锁。keyctl=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) keyctl=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）For unprivileged containers only: Allow the use of the keyctl() system call. This is required to use docker inside a container. By default unprivileged containers will see this system call as non-existent. This is mostly a workaround for systemd-networkd, as it will treat it as a fatal error when some keyctl() operations are denied by the kernel due to lacking permissions. Essentially, you can choose between running systemd-networkd or docker. 仅适用于非特权容器：允许使用 keyctl（） 系统调用。这是在容器内使用 docker 所必需的。默认情况下，非特权容器会将此系统调用视为不存在。这主要是 systemd-networkd 的一种解决方法，因为当某些 keyctl（） 操作由于缺少权限而被内核拒绝时，它会将其视为致命错误。从本质上讲，您可以选择运行 systemd-networkd 或 docker。mknod=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) mknod=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Allow unprivileged containers to use mknod() to add certain device nodes. This requires a kernel with seccomp trap to user space support (5.3 or newer). This is experimental. 允许非特权容器使用 mknod（） 添加某些设备节点。这需要一个带有 seccomp trap 的内核来支持用户空间（5.3 或更高版本）。这是实验性的。mount=&lt;fstype;fstype;...&gt;Allow mounting file systems of specific types. This should be a list of file system types as used with the mount command. Note that this can have negative effects on the container’s security. With access to a loop device, mounting a file can circumvent the mknod permission of the devices cgroup, mounting an NFS file system can block the host’s I/O completely and prevent it from rebooting, etc. 允许挂载特定类型的文件系统。这应该是与 mount 命令一起使用的文件系统类型的列表。请注意，这可能会对容器的安全性产生负面影响。通过访问循环设备，挂载文件可以规避设备 cgroup 的 mknod 权限，挂载 NFS 文件系统可以完全阻塞主机的 I/O 并阻止其重启等。nesting=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) nesting=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Allow nesting. Best used with unprivileged containers with additional id mapping. Note that this will expose procfs and sysfs contents of the host to the guest. 允许嵌套。最适合与具有额外 ID 映射的非特权容器一起使用。请注意，这将向客户机公开主机的 procfs 和 sysfs 内容。</span></p></li><li><p><span>hookscript: </span><string><span> hookscript： </span><string></p><p><span>Script that will be exectued during various steps in the containers lifetime. 将在容器生命周期中的各个步骤中执行的脚本。</span></p></li><li><p><span>hostname: </span><string><span> 主机名： </span><string></p><p><span>Set a host name for the container. 为容器设置主机名。</span></p></li><li><p><span>lock: &lt;backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete&gt; lock： &lt;backup | create | destroyed | disk | fstrim | migrate | mounted | rollback | snapshot | snapshot-delete&gt;</span></p><p><span>Lock/unlock the container. 锁定/解锁容器。</span></p></li><li><p><span>memory: </span><integer><span> (16 - N) (</span><em><span>default =</span></em><span> 512) 内存： </span><integer><span> （16 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of RAM for the container in MB. 容器的 RAM 量（以 MB 为单位）。</span></p></li><li><p><span>mp[n]: [volume=]</span><volume><span> ,mp=</span><Path><span> [,acl=&lt;1|0&gt;] [,backup=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] mp[n]： [volume=]</span><volume><span> ，mp=</span><Path><span> [，acl=&lt;1|0&gt;] [，backup=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume. 使用卷作为容器挂载点。使用特殊语法 STORAGE_ID：SIZE_IN_GiB 分配新卷。acl=</span><boolean><span>Explicitly enable or disable ACL support. 显式启用或禁用 ACL 支持。backup=</span><boolean><span> 备份=</span><boolean><span>Whether to include the mount point in backups (only used for volume mount points). 是否在备份中包含装入点（仅用于卷装入点）。mountoptions=&lt;opt[;opt...]&gt;Extra mount options for rootfs/mps. rootfs/mps 的额外挂载选项。mp=</span><Path><span>Path to the mount point as seen from inside the container. 从容器内部看到的挂载点的路径。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAJhUlEQVRoge2ZWWycVxXHf+fce7/v%0Am/GaGCde4pI0aQlJC0kRtE1L00JbLIjY4QkeUB9YHhAIJFCExAsKUkE8IAFFPIDUIqhBRSDRBUqC%0ACimFFBCBpCWx02IaZ3G2SdyxPZ7vHh6+mcnSZnFjKIge6Wj8zYzvPf9z/me5d8TM+F8WfbkNuFx5%0ABcDLLf/fAEZGRmx4eNh6enqsp6fHhoeHbWRk5D9aFeSlVqHNmzfb6H33sHnT7ZQmD5GfOMax6Sm+%0APl5h1Yc+xpYtW2SBbX1ReUkRGBkZsdH77mHLW95EOv4Ms3ueJh6YYPHUFF9aljJ63z3cf//9/5FI%0AvKQIDA8P293L2yhVjjH7t51ocDiviFecF46n7XzBreChhx4qNhH5t0XjJUVgx44ddGUZ9b/vIpQD%0AoRQIWSDJAiFL6B9axo4dO4gxAmANWVDLG+Ln82URMRGhVCqRHxonlAPqFXWKC4r6IhI6OMjMzBN4%0A/4LlTUQQ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PFFFRRLZ29SQRU%0AELOGY4pZ6LKOlM07mZ07d/KOtw1TcB4sGkTDiDQ9K1IkrKeYmQC08d7pZLSiRBpE5s7aS0XAHFEK%0AAGY51Wr18g80Zmb33nsvX/z8XdSmj2AWOXhwkrxe46+79jB55Dh/3T2GxUhHextdXW2sXN7PNWtW%0AIQKDA71FFBoAjIgQkVg/a5+oHrU5zIznDhxk964xKpXKggAoTlWW8+OfPorlOQ//cjsDy1bS2dFO%0AW+diVly1iL6+Pqanpzl5qsL4pPHwN3/G1InDlMsZ7Z1tDA30cfWqIa5dexV9fb2YnT7UTxw4xsHJ%0Ao4yOjfOP8QOMjx/k4OQx7r777lY0zycXvJ02M4sxMjg4SL1eR0TYsGEDw8PD9PX10d7ejogUN3a1%0AGqpKCIE8z5mdnUVVqVarbN++nba2Nvbu3csDDzyAqrJ8+atb+zjn6e/vZ/Xq1axatYq1a9fS29tL%0AlmUMDQ1RKpXOm9EXvV6v1+tWr9eZnp5mZmaGWq1GjLHF62aiNZ+bnPfe45xrvTZzxMyYmZk56+LX%0AzKjX661DvHOOJElIkoRSqYT3/vLvRlW15eHCa4VxzdvmpjZDfubzuXeb3vuzqCEixBhbo0NTkyS5%0APAr9L8j/96+U/w3yCoCXW14B8HLLvwDd67nwZIEPdgAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Note"><span>Must not contain any symlinks for security reasons. 出于安全原因，不得包含任何符号链接。quota=</span><boolean><span> 配额=</span><boolean><span>Enable user quotas inside the container (not supported with zfs subvolumes) 在容器内启用用户配额（zfs 子卷不支持）replicate=</span><boolean><span> (</span><em><span>default =</span></em><span> 1) replicate=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）Will include this volume to a storage replica job. 将此卷包含在存储副本作业中。ro=</span><boolean><span>Read-only mount point 只读挂载点shared=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) shared=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Mark this non-volume mount point as available on all nodes. 将此非卷挂载点标记为在所有节点上可用。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMVUlEQVRogdWZeXDVVZbHP7/f27JB%0AwtJIiCERRFlbx5FuHRrRBgtBsRIwCCOrFmGmiDBjYVNlQlgiQjU6IjI4xLJxGf5QGp0Cbaftsu3R%0Ahu6aYXqgLZoWEsjyyDP7S972e7/l3vnj5cW3Ji9M/zOn6lRS997fvd/vueece+59ipSS/89iv5mP%0AZEQQQsS23RQARVEAUFUVRVFQog0ZyogJSClld3c327Ztw7IsLMuKto90KgBsNhtVVVXMnj2bvLw8%0A7Ha7HBEJKWXGKoSQXV1dcsuWLfLSpUsyKkKIIdWyrLTqdrvlU089Jc+cOSM9Ho8Mh8NSCCEzxTRi%0A8JWVlbKtre0vAt6yLGmapmxtbZXr1q2TZ86ckW1tbSMikTH4GzduyKqqqkHwsSA1TZOhUChOg8Hg%0AoBqGIQ3DSAk+VleuXDliEspwviullD09PbzwwgscO3Yszt91XScQCNDZ2YlhGIPfuFwu7Pb48FJV%0AlZycnEG/z8/PRwiBqqqDYzweD88//zyrV69m7ty5jBs3DofDMWRgD0lASik9Hg979uzh2LFjcYEa%0ACoVob2/n2q9+hbZ585BGSCWltbVMr61NtSYbN25k7dq1zJkzZ1gSaqrGWPD79+9PAh8MBuns7OTi%0Ae+8R2rwZCYOaqTTt3cuf6+qSwAMcP36co0eP8vXXX9Pd3Y1hGMg0lk65A1HwdXV1vPHGG0mW7+jo%0A4A8/+xn2BAAAI0riQOnu3cyork7Zt3btWtavX89dd92VdieSCEgppdvt5sCBAxw5ciSuLxQK0dTU%0ARMOHHyJ37hwh1NSiAKU7djDzxRdT9q9YsYJt27YxY8aMlCTiCEgp5eXLl6mvr+fVV1+NmygYDNLW%0A1sY3J09ipLEYQDPw2sBfCTwMLARKgKwhiNxWU8OsXbvi2qLYnnzySSorK1PvRGyqvH79uty6dWtS%0ALg8EAvLKlSvyo1275M8hSV8H+eMBvRPk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LRwR+RATgOxItLS1cu3aN%0Avr6+wTfK/4tEfzeeMmUKkydPzhg8jJAAREgEg0H6+vrQNC2pFL8ZUVWVrKws8vPzycnJQVXVjH/s%0A/F/lgJiyQFHragAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Warning"><span>This option does not share the mount point automatically, it assumes it is shared already! 此选项不会自动共享挂载点，它假定它已经共享！size=</span><DiskSize><span> 大小=</span><iskSize><span>Volume size (read only value). 卷大小（只读值）。volume=</span><volume><span> 体积=&lt;体积&gt;Volume, device or directory to mount into the container. 要挂载到容器中的卷、设备或目录。</span></p></li><li><p><span>nameserver: </span><string><span> 名称服务器： </span><string></p><p><span>Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 服务器 IP 地址。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>net[n]: name=</span><string><span> [,bridge=</span><bridge><span>] [,firewall=&lt;1|0&gt;] [,gw=</span><GatewayIPv4><span>] [,gw6=</span><GatewayIPv6><span>] [,hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span>] [,ip=&lt;(IPv4/CIDR|dhcp|manual)&gt;] [,ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt;] [,link_down=&lt;1|0&gt;] [,mtu=</span><integer><span>] [,rate=</span><mbps><span>] [,tag=</span><integer><span>] [,trunks=&lt;vlanid[;vlanid...]&gt;] [,type=</span><veth><span>] net[n]： name=</span><string><span> [，bridge=</span><bridge><span>] [，firewall=&lt;1|0&gt;] [，gw=</span><GatewayIPv4><span>] [，gw6=</span><GatewayIPv6><span>] [，hwaddr=&lt;XX：XX：XX：XX：XX：XX&gt;] [，ip=&lt;（IPv4/CIDR|dhcp|manual）&gt;] [，ip6=&lt;（IPv6/CIDR|auto|dhcp|manual）&gt;] [，link_down=&lt;1|0&gt;] [，mtu=</span><integer><span>] [，rate=</span><mbps><span>] [，tag=</span><integer><span>] [，trunks=&lt;vlanid[;弗拉尼德...]&gt;] [，类型=</span><veth><span>]</span></p><p><span>Specifies network interfaces for the container. 指定容器的网络接口。bridge=</span><bridge><span> 桥=&lt;桥&gt;Bridge to attach the network device to. 将网络设备连接到的网桥。firewall=</span><boolean><span> 防火墙=</span><boolean><span>Controls whether this interface’s firewall rules should be used. 控制是否应使用此接口的防火墙规则。gw=</span><GatewayIPv4><span>Default gateway for IPv4 traffic. IPv4 流量的默认网关。gw6=</span><GatewayIPv6><span>Default gateway for IPv6 traffic. IPv6 流量的默认网关。hwaddr=</span><a href='XX:XX:XX:XX:XX:XX' target='_blank' class='url'>XX:XX:XX:XX:XX:XX</a><span> hwaddr=&lt;XX：XX：XX：XX：XX&gt;A common MAC address with the I/G (Individual/Group) bit not set. 未设置 I/G（个人/组）位的公共 MAC 地址。ip=&lt;(IPv4/CIDR|dhcp|manual)&gt; ip=&lt;（IPv4/CIDR|dhcp|手动）&gt;IPv4 address in CIDR format. CIDR 格式的 IPv4 地址。ip6=&lt;(IPv6/CIDR|auto|dhcp|manual)&gt; ip6=&lt;（IPv6/CIDR|自动|dhcp|手动）&gt;IPv6 address in CIDR format. CIDR 格式的 IPv6 地址。link_down=</span><boolean><span>Whether this interface should be disconnected (like pulling the plug). 是否应断开此接口（如拔插头）。mtu=</span><integer><span> (64 - 65535) mtu=</span><integer><span> （64 - 65535）Maximum transfer unit of the interface. (lxc.network.mtu) 接口的最大传输单位。（lxc.network.mtu）name=</span><string><span> 名称=</span><string><span>Name of the network device as seen from inside the container. (lxc.network.name) 从容器内部看到的网络设备的名称。（lxc.network.name）rate=</span><mbps><span> 率=</span><mbps><span>Apply rate limiting to the interface 对接口应用速率限制tag=</span><integer><span> (1 - 4094) 标签=</span><integer><span> （1 - 4094）VLAN tag for this interface. 此接口的 VLAN 标记。trunks=&lt;vlanid[;vlanid...]&gt; trunks=&lt;vlanid[;弗拉尼德...]&gt;VLAN ids to pass through the interface 要通过接口的 VLAN IDtype=</span><veth><span> 类型=</span><veth><span>Network interface type. 网络接口类型。</span></p></li><li><p><span>onboot: </span><boolean><span> (</span><em><span>default =</span></em><span> 0) onboot： </span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Specifies whether a container will be started during system bootup. 指定是否在系统启动期间启动容器。</span></p></li><li><p><span>ostype: &lt;alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged&gt; ostype： &lt;alpine | archlinux | centos | debian | devuan | fedora | gentoo | nixos | opensuse | ubuntu | unmanaged&gt;</span></p><p><span>OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/</span><ostype><span>.common.conf. Value </span><em><span>unmanaged</span></em><span> can be used to skip and OS specific setup. 操作系统类型。这用于在容器内部设置配置，对应于 /usr/share/lxc/config/.common.conf 中的 lxc 设置脚本。值 </span><em><span>unmanaged</span></em><span> 可用于跳过和特定于操作系统的设置。</span></p></li><li><p><span>protection: </span><boolean><span> (</span><em><span>default =</span></em><span> 0) 保护： </span><boolean><span> （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Sets the protection flag of the container. This will prevent the CT or CT’s disk remove/update operation. 设置容器的保护标志。这将阻止 CT 或 CT 的磁盘删除/更新操作。</span></p></li><li><p><span>rootfs: [volume=]</span><volume><span> [,acl=&lt;1|0&gt;] [,mountoptions=&lt;opt[;opt...]&gt;] [,quota=&lt;1|0&gt;] [,replicate=&lt;1|0&gt;] [,ro=&lt;1|0&gt;] [,shared=&lt;1|0&gt;] [,size=</span><DiskSize><span>] rootfs： [volume=]</span><volume><span> [，acl=&lt;1|0&gt;] [，mountoptions=&lt;opt[;opt...]&gt;] [，quota=&lt;1|0&gt;] [，replicate=&lt;1|0&gt;] [，ro=&lt;1|0&gt;] [，shared=&lt;1|0&gt;] [，size=</span><DiskSize><span>]</span></p><p><span>Use volume as container root. 使用卷作为容器根目录。acl=</span><boolean><span>Explicitly enable or disable ACL support. 显式启用或禁用 ACL 支持。mountoptions=&lt;opt[;opt...]&gt;Extra mount options for rootfs/mps. rootfs/mps 的额外挂载选项。quota=</span><boolean><span> 配额=</span><boolean><span>Enable user quotas inside the container (not supported with zfs subvolumes) 在容器内启用用户配额（zfs 子卷不支持）replicate=</span><boolean><span> (</span><em><span>default =</span></em><span> 1) replicate=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 1）Will include this volume to a storage replica job. 将此卷包含在存储副本作业中。ro=</span><boolean><span>Read-only mount point 只读挂载点shared=</span><boolean><span> (</span><em><span>default =</span></em><span> 0) shared=</span><boolean><span>（</span><em><span>默认值 =</span></em><span> 0）Mark this non-volume mount point as available on all nodes. 将此非卷挂载点标记为在所有节点上可用。</span><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMVUlEQVRogdWZeXDVVZbHP7/f27JB%0AwtJIiCERRFlbx5FuHRrRBgtBsRIwCCOrFmGmiDBjYVNlQlgiQjU6IjI4xLJxGf5QGp0Cbaftsu3R%0Ahu6aYXqgLZoWEsjyyDP7S972e7/l3vnj5cW3Ji9M/zOn6lRS997fvd/vueece+59ipSS/89iv5mP%0AZEQQQsS23RQARVEAUFUVRVFQog0ZyogJSClld3c327Ztw7IsLMuKto90KgBsNhtVVVXMnj2bvLw8%0A7Ha7HBEJKWXGKoSQXV1dcsuWLfLSpUsyKkKIIdWyrLTqdrvlU089Jc+cOSM9Ho8Mh8NSCCEzxTRi%0A8JWVlbKtre0vAt6yLGmapmxtbZXr1q2TZ86ckW1tbSMikTH4GzduyKqqqkHwsSA1TZOhUChOg8Hg%0AoBqGIQ3DSAk+VleuXDliEspwviullD09PbzwwgscO3Yszt91XScQCNDZ2YlhGIPfuFwu7Pb48FJV%0AlZycnEG/z8/PRwiBqqqDYzweD88//zyrV69m7ty5jBs3DofDMWRgD0lASik9Hg979uzh2LFjcYEa%0ACoVob2/n2q9+hbZ585BGSCWltbVMr61NtSYbN25k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/5+LFacE3NDRQWVmZFjwk%0AnAOxJF566SW2bNnChQsXkmKipKSEB959l9vmzcvo1pZOpz/8ME98+mla8Bs2bGDZsmVpwUOa5/VE%0Ad0oXE319fXxWXs43Z88m9Q0n03/0I1YPJIRE8OfOnWPHjh2UlZUNCT4tgUQSO3fupKqqigceeGCw%0AP/a7VM8emUg0VcbK+fPn2bp1KytWrBgW/JAEEknU1NTw7LPPMn/+/GFBZQI8lZw/f57nnnuO5cuX%0AM2XKlGHBD0sgkURdXR2PP/44FRUVNwV+qP7Tp09z8ODBjNxmRAQSSRw4cIBly5axdOnSvwh4RVH4%0A4osv2L9/P2VlZRlbfkQEEkls376djo4OQqHE83bk4nK5EEKwZs0aSktLRwR+RATgOxItLS1cu3aN%0Avr6+wTfK/4tEfzeeMmUKkydPzhg8jJAAREgEg0H6+vrQNC2pFL8ZUVWVrKws8vPzycnJQVXVjH/s%0A/F/lgJiyQFHragAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Warning"><span>This option does not share the mount point automatically, it assumes it is shared already! 此选项不会自动共享挂载点，它假定它已经共享！size=</span><DiskSize><span> 大小=</span><iskSize><span>Volume size (read only value). 卷大小（只读值）。volume=</span><volume><span> 体积=&lt;体积&gt;Volume, device or directory to mount into the container. 要挂载到容器中的卷、设备或目录。</span></p></li><li><p><span>searchdomain: </span><string><span> 搜索域： </span><string></p><p><span>Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. 设置容器的 DNS 搜索域。如果您既没有设置 searchdomain 也没有设置 nameserver，Create 将自动使用主机的设置。</span></p></li><li><p><span>startup: </span><code>[[order=]\d+] [,up=\d+] [,down=\d+]</code><span> 启动： &#39;[[order=]\d+] [，up=\d+] [，down=\d+] &#39;</span></p><p><span>Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the </span><em><span>up</span></em><span> or </span><em><span>down</span></em><span> delay in seconds, which specifies a delay to wait before the next VM is started or stopped. 启动和关闭行为。Order 是一个非负数，用于定义一般启动顺序。通过反向排序完成关机。此外，还可以设置</span><em><span>启动</span></em><span>或</span><em><span>关闭</span></em><span>延迟（以秒为单位），这指定了在启动或停止下一个 VM 之前要等待的延迟。</span></p></li><li><p><span>swap: </span><integer><span> (0 - N) (</span><em><span>default =</span></em><span> 512) 交换： </span><integer><span> （0 - N） （</span><em><span>默认值 =</span></em><span> 512）</span></p><p><span>Amount of SWAP for the container in MB. 容器的 SWAP 量（以 MB 为单位）。</span></p></li><li><p><span>tags: </span><string><span> 标签： </span><string></p><p><span>Tags of the Container. This is only meta information. 容器的标记。这只是元信息。</span></p></li><li><p><span>template: </span><boolean><span> (</span><em><span>default =</span></em><span> 0) 模板： </span><boolean><span> （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Enable/disable Template. 启用/禁用模板。</span></p></li><li><p><span>timezone: </span><string><span> 时区： </span><string></p><p><span>Time zone to use in the container. If option isn’t set, then nothing will be done. Can be set to </span><em><span>host</span></em><span> to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab 要在容器中使用的时区。如果未设置选项，则不会执行任何操作。可以设置为</span><em><span>主机</span></em><span>以匹配主机时区，或从 /usr/share/zoneinfo/zone.tab 中设置任意时区选项</span></p></li><li><p><span>tty: </span><integer><span> (0 - 6) (</span><em><span>default =</span></em><span> 2) tty： </span><integer><span> （0 - 6） （</span><em><span>默认值 =</span></em><span> 2）</span></p><p><span>Specify the number of tty available to the container 指定容器可用的 tty 数量</span></p></li><li><p><span>unprivileged: </span><boolean><span> (</span><em><span>default =</span></em><span> 0) 无特权： </span><boolean><span> （</span><em><span>默认值 =</span></em><span> 0）</span></p><p><span>Makes the container run as unprivileged user. (Should not be modified manually.) 使容器以非特权用户身份运行。（不应手动修改。</span></p></li><li><p><span>unused[n]: [volume=]</span><volume><span> 未使用[n]： [音量=]&lt;音量&gt;</span></p><p><span>Reference to unused volumes. This is used internally, and should not be modified manually. 对未使用卷的引用。这是在内部使用的，不应手动修改。volume=</span><volume><span> 体积=&lt;体积&gt;The volume that is not used currently. 当前未使用的卷。</span></p></li></ul><h2 id='locks-锁'><span>Locks 锁</span></h2><p><span>Container migrations, snapshots and backups (vzdump) set a lock to prevent incompatible concurrent actions on the affected container. Sometimes you need to remove such a lock manually (e.g., after a power failure).</span>
<span>容器迁移、快照和备份 （vzdump） 设置锁定，以防止在受影响的容器上执行不兼容的并发操作。有时您需要手动移除此类锁（例如，在停电后）。</span></p><pre class="md-fences md-end-block ty-contain-cm modeLoaded" spellcheck="false" lang=""><div class="CodeMirror cm-s-inner cm-s-null-scroll CodeMirror-wrap" lang=""><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 11px; left: 4px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" tabindex="0" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 0px; margin-bottom: 0px; border-right-width: 0px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"><pre><span>xxxxxxxxxx</span></pre></div><div class="CodeMirror-measure"></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-code" role="presentation"><div class="CodeMirror-activeline" style="position: relative;"><div class="CodeMirror-activeline-background CodeMirror-linebackground"></div><div class="CodeMirror-gutter-background CodeMirror-activeline-gutter" style="left: 0px; width: 0px;"></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"># pct unlock &lt;CTID&gt;</span></pre></div></div></div></div></div></div><div style="position: absolute; height: 0px; width: 1px; border-bottom-width: 0px; border-bottom-style: solid; border-bottom-color: transparent; top: 26px;"></div><div class="CodeMirror-gutters" style="display: none; height: 26px;"></div></div></div></pre><figure class='table-figure'><table><thead><tr><th><img src="data:image/png;base64,%0AiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAKdUlEQVRoge1Ze1AV1x3+zt279wEi%0ADWCYGzRVktqa1MEmmtbWR22ncXxUrTDWV/5IqG2wUAUfmUwSkk6V+EAJCEQC6figwZBqZtRxqukf%0AtebRZBpFG1S0hiRErwiaKK977+6eX//YPXt37+UiIJlMZnpmdnb33PP4vt97z2VEhG9yc3zdAO60%0A/Z/A192+8QScX8Wifr+fWltbzffU1FT4fD72Vew15ASampqovr4eBw8eNPvGjRuHzMxMmj9//tCT%0AIKIhu958801yuVwEoNdr48aNNJT7EdHQEdi/fz/JshwTvLiKioqGlMSQLFJfX0+MMRvQsWNSqXLz%0AH2jez78fRWLTpk1DRuKOF6irqyOn02kDOP8XGdTz+VFSP91Hatu79NRvZ0SR2LJly5CQuKPJtbW1%0AJEmSDdivHp1AwctHSblYSsqFElLOF5PavIvWZU+LIrF169Y7JjHoibt3744CnzXrIQpeOUbKhVJS%0AmkpIPV9MyrnNpJwtIuVSNa15/MdRJLZt23ZHJBjRwIu5N954gxYvXgzOudm3aO5E1L5SBNZ1Hoxr%0AINLAyH6HJxVP/WkXtu9+37ZeSUkJVq9ePagQO+BMXFNTEwV+ybxHsPeVIjg6zwOkgSWNhuOuUUBC%0AKhxJY0AggDSgpwWbn1mO1csftq1ZUFCA0tLSQZXFA0pkVVVVlJOTA6vWsmY9hF07N0AS4OU48LgR%0AWLO+FPFxboxMS8G5hlPYmPMI4jwM1P0Jtj67DJyrKHvtNADdjPPz8+FwOCgvL29gmuivrVVUVESF%0AyqxZD1PoyjFSL+7QHbapmJTml+n9EzVRtl676ZekNKwl5VQ+KSfzKHR2E+UutodYxhiVl5cPyCf6%0AZUJlZWWUm5trk/wTi6bgtVdf1M2Gq2DEwUgDNBWhUDBqjfSRwwGoIOEP3c3Y/uxirFw0zibMvLw8%0AVFZW9tucbkugoqKCVq1aZQO/Y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93wer1wuVy2ECpJko2I%0AiTNWJrZGI+HEwi6FisUVCAQQCASwZ88eVFZW9lk9JicnY/369fD5fPB4PCbo+Ph4k4TH44HL5YLX%0A64XX6zXH9EKE9aUBRkTEGLNJP1Kd4nI4HMjOzkZ8fDyKi4ttJ3eiJSYmYu3atRg1apQJzuv1wuPx%0AwOPxwOFwmEBFHnA6nXC5XGYSiywlbns2SnoDANN0hMNZnS0UCpkaOnPmDN566y20tLSY2ktLS8OM%0AGTOQkpICt9uNuLg4M2EJ8CJZSZJkZmFBwkrAWpH2+3BXEBEkRIhTVdVMOCL5qKqKy5cvQ1EUaJoG%0AVVWRnKx/Jlpt3eVy2QCKu9C68AFr9o0spwd0Oh1ZYggCIlNaiQktiXdhZgKQABcp3ci7LMtM7B0J%0AfsAErJoAYItG1mdr+hfvVlACtHDIXkploYXbHvQOikDEe6/ZmjFmAhf9ZvJxOk2Qol88W4kYz32S%0AGNQfHLG+TyMTkAVEr88xQfVnkBg7GAKixSIykDYQsL21/wFkW/B5QqT9lwAAAABJRU5ErkJggg==" referrerpolicy="no-referrer" alt="Caution"></th><th><span>Only do this if you are sure the action which set the lock is no longer running. 仅当您确定设置锁的操作不再运行时才执行此操作。</span></th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table></figure><h2 id='files-文件'><span>Files 文件</span></h2><ul><li><p><span>/etc/pve/lxc/</span><CTID><span>.conf</span></p><p><span>Configuration file for the container </span><em><CTID></em><span>. 容器 </span><em><CTID></em><span> 的配置文件。</span></p></li></ul><h2 id='copyright-and-disclaimer-版权及免责声明'><span>Copyright and Disclaimer 版权及免责声明</span></h2><p><span>Copyright © 2007-2022 Proxmox Server Solutions GmbH</span>
<span>版权所有 © 2007-2022 Proxmox Server Solutions GmbH</span></p><p><span>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</span>
<span>该程序是自由软件：您可以根据自由软件基金会发布的 GNU Affero 通用公共许可证的条款重新分发和/或修改它，该许可证的版本 3 或（由您选择）任何更高版本。</span></p><p><span>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.</span>
<span>分发该程序是希望它有用，但没有任何保证;甚至没有对适销性或特定用途适用性的默示保证。有关更多详细信息，请参阅 GNU Affero 通用公共许可证。</span></p><p><span>You should have received a copy of the GNU Affero General Public License along with this program. If not, see </span><a href='https://www.gnu.org/licenses/' target='_blank' class='url'>https://www.gnu.org/licenses/</a>
<span>您应该已经收到了 GNU Affero 通用公共许可证的副本以及此程序。如果没有，请参阅 </span><a href='https://www.gnu.org/licenses/' target='_blank' class='url'>https://www.gnu.org/licenses/</a></p><hr /><p><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnoteref_1'><span>1</span></a><span>. this includes all newest major versions of container templates shipped by Proxmox VE</span>
<a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnoteref_1'><span>1</span></a><span>. 这包括 Proxmox VE 提供的所有最新的容器模板主要版本</span></p><p><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnoteref_2'><span>2</span></a><span>. for example Alpine Linux</span>
<a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnoteref_2'><span>2</span></a><span>. 例如 Alpine Linux</span></p><p><a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnoteref_3'><span>3</span></a><span>. /etc/os-release replaces the multitude of per-distribution release files </span><a href='https://manpages.debian.org/stable/systemd/os-release.5.en.html' target='_blank' class='url'>https://manpages.debian.org/stable/systemd/os-release.5.en.html</a>
<a href='https://pve.proxmox.com/pve-docs/pct.1.html#_footnoteref_3'><span>3</span></a><span>. /etc/os-release 替换了每个发行版的大量发布文件 </span><a href='https://manpages.debian.org/stable/systemd/os-release.5.en.html' target='_blank' class='url'>https://manpages.debian.org/stable/systemd/os-release.5.en.html</a></p><p><span>Version 8.2.3 版本 8.2.3</span>
<span>Last updated Wed Jul 31 16:58:41 CEST 2024</span>
<span>最后更新 星期三 Jul 31 16：58：41 CEST 2024</span></p></div></div>
</body>
</html>